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 installor with npm:
npm installyarn startor with npm:
npm startInitially 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 buildor with npm:
npm buildYou 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 serveor
npm -g i serveand run:
serve ./buildThis project is no longer maintained.
If you 👍 this project, feel free to give it a ⭐