- Node.js & npm
- Yarn
- Python 3.8.0
Our CNN model for detecting diseases in crops https://drive.google.com/file/d/1DP5lf6y9L4r3slgQOBXOT0PCyQq35jAq/view?usp=sharing
NOTE: steps 1-3 only needed if you are looking to dev on the API
- Create Python virtual environment
python3.8 -m venv venv
- Source the virtual Python development environent. From the
appdirectonry, run
source api/venv/bin/activate
- As confirmation, your shell prompt should be prepended with
(venv)if you are in the virtual environment, like so:
(venv) dlu200774@YLHomePC:~/2021-shellhacks/app$
- Install project dependencies
cd api/ && pip install -r requirements.txt
- Navigate to the
appdirectory - API: If you are not developing the API, run
flask run. Otherwise, if you have thevenvfolder created, runyarn start-apiin a second terminal window. The server app will be listening onlocalhost:5000 - Frontend: Run
yarn start. This should launch a browser window atlocalhost:3000.
The servers can continously run and should automatically refresh to reflect any code changes.