The building blocks of our wildfire detection & monitoring API.
- Python 3.7 (or more recent)
- pip
You can clone and install the project dependencies as follows:
git clone https://github.com/pyronear/pyro-api.git
If you wish to deploy this project on a server hosted remotely, you might want to be using Docker containers. Beforehand, you will need to set a few environment variables either manually or by writing an .env
file in the root directory of this project, like in the example below:
QARNOT_TOKEN=my_very_secret_token
BUCKET_NAME=my_storage_bucket_name
BUCKET_MEDIA_FOLDER=my/media/subfolder
Those values will allow your API server to connect to our cloud service provider Qarnot Computing, which is mandatory for your local server to be fully operational. Then you can run the API containers using this command:
docker-compose up -d --build
Once completed, you will notice that you have a docker container running on the port you selected, which can process requests just like any django server.
The full project documentation is available here for detailed specifications. The documentation was built with ReDoc.
Please refer to CONTRIBUTING
if you wish to contribute to this project.
Distributed under the Apache 2.0 License. See LICENSE
for more information.