Skip to content

ojafero/Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2021-shellhacks

Prerequisites

  • Node.js & npm
  • Yarn
  • Python 3.8.0

ML Model

Our CNN model for detecting diseases in crops https://drive.google.com/file/d/1DP5lf6y9L4r3slgQOBXOT0PCyQq35jAq/view?usp=sharing

Development (Linux Environment)

NOTE: steps 1-3 only needed if you are looking to dev on the API

  1. Create Python virtual environment
python3.8 -m venv venv
  1. Source the virtual Python development environent. From the app directonry, run
source api/venv/bin/activate
  1. 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$
  1. Install project dependencies
cd api/ && pip install -r requirements.txt

Spin up the application

  • Navigate to the app directory
  • API: If you are not developing the API, run flask run. Otherwise, if you have the venv folder created, run yarn start-api in a second terminal window. The server app will be listening on localhost:5000
  • Frontend: Run yarn start. This should launch a browser window at localhost:3000.

The servers can continously run and should automatically refresh to reflect any code changes.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors