EPAATH Data Collection
Runs on OLE Nepal Raspberry -Pi image ( especially 4 and 400 )
Flask Implementation
Need to have Epaath running on port 80. Starts getting data once we run it thorugh http://ip . http://localhost doesn't seem to work. http://127.0.0.1 works. Before this we need to comment out the track section on js/ole.activity.js file on epaath bundle.
Steps to run it locally
- Clone the repo
$git clone --branch devnew https://git2023.olenepal.org/regan/epaath_data_collection_flask_backend.git
- Cd into the directory
$cd` epaath_data_collection_flask_backend
Change branch if necessry
- ENV Setup
$ cp .env.example .env
- Running it locally. Create virtual environment, activate, and pull the dependencies.
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
- Start the server
$ flask run
Flask Dockerized
#Docker build and run
# $ docker-compose build $ docker-compose up #