The Cannlytics API provides an interface to quickly receive samples, perform analyses, collect and review results, and publish certificates of analysis (CoAs). There are also logistics, CRM (client relationship management), inventory management, and invoicing tools. The Cannlytics API comes with batteries included, but you are always welcome to supercharge your setup with custom modifications.
Installing the Cannlytics API is simple.
git clone https://github.com/cannlytics.com/cannlytics-api
Running the Cannlytics API locally for development is easy.
python manage.py runserver 4200
or
npm run dev
Note that the API is run on port 4200 to allow for simultaneous development with other pieces of the Cannlytics engine.
Tests are performed with pytest
. You can perform the tests by executing the pytest
command from the tests
directory.
cd tests
pytest
See docs/publishing.md
for instructions on how to publish the API. Publishing entails containerizing the API, deploying the container to Cloud Run, and directing hosting requests to the containerized app from Firebase Hosting. You can publish using Node.js with one quick command:
npm run publish
This application is released under the MIT license. You can use the code for any purpose, including commercial projects.
Made with ๐ by Cannlytics.