Skip to content

The interface ๐ŸŒ to the logic of ๐Ÿ”ฅ Cannlytics.

License

Notifications You must be signed in to change notification settings

cannlytics/cannlytics-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Cannlytics API

license contributions welcome

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.

Installation

Installing the Cannlytics API is simple.

git clone https://github.com/cannlytics.com/cannlytics-api

Development

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.

Testing

Tests are performed with pytest. You can perform the tests by executing the pytest command from the tests directory.

cd tests
pytest

Publishing

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

License

This application is released under the MIT license. You can use the code for any purpose, including commercial projects.

license

Made with ๐Ÿ’– by Cannlytics.