Paddy Leaf Disease Detection System (PLDDS) is web application made to help farmers identify leaf diseases in their paddy crop.
The master branch has code for React app and the backend branch has code for flask web server.
[TOC]
Make sure you have node v12.x and npm installed.
If you have yarn installed, install the dependencies using it:
yarn install
or with npm:
npm install
yarn start
or with npm:
npm start
Initially the app is connected to a backend flask server hosted on heroku.
If you want to wire the backend to the local flask server setup by yourself from the backend code, you may modify the localhost
value in host
object to the ip address of the backend flask server.
Check the backend branch in this repo for more information on how to set up flask server.
./src/backendapi.js
import Axios from 'axios'
const host = {
heroku: "//pldds-beta.herokuapp.com",
localhost: "//Your local pldds backend flask server's IP Address or 127.0.0.1:5000(localhost)"
}
export default Axios.create({
baseURL:host.heroku //change this to localhost
})
To create a production build of this React app, you may run:
yarn build
or with npm:
npm build
You will find the build folder generated in the project directory.
To serve the production build of the app locally,
Install serve from npm:
yarn global add serve
or
npm -g i serve
and run:
serve ./build
This project is no longer maintained.
If you 👍 this project, feel free to give it a ⭐