The building blocks of our wildfire detection & monitoring API.
- Python 3.6 (or more recent)
- pip
You can clone and install the project dependencies as follows:
git clone https://github.com/pyronear/pyro-platform.git
pip install -r pyro-platform/requirements.txtBeforehand, 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:
API_URL=http://my-api.myhost.com
API_LOGIN=my_secret_login
API_PWD=my_very_secret_password
Those values will allow your web server to connect to our API, which is mandatory for your local server to be fully operational.
You can start by installing the requirements of the project:
pip install -r requirements.txtYou can then run the web server using the following commands:
python app/main.pyThen your Dash app will be available at http://localhost:8050/.
If you wish to deploy this project on a server hosted remotely, you might want to be using Docker containers. You can perform the same using this command:
docker-compose up -d --buildLike previously, you can navigate then to http://localhost:8050/ to interact with your Dash app.
Distributed under the Apache 2.0 License. See LICENSE for more information.