This is a web application called Farmer’s Market and is built on the React Framework for User Interface or frontend, Play framework for services i.e. middleware and uses MySQL for database. Farmer’s Market brings corporate to the farmers. The buyers of produce can bid for a farmer’s stock beforehand. Then, as per the farmer’s choice of the bidder, the bidder can pay a nominal upfront advance to the farmer. When the crop is delivered, the buyer may pay the pre-agreed full price irrespective of the market demand and current price. Farmers can use the upfront money to pay for the crop and insure it against any unexpected scenarios.
Installations required:
- Download and install IntelliJ IDEA from: The Java IDE for Professional Developers by JetBrains.
- Download and install MySQL Database Server and MySQL Workbench from: MySQL Community.
- Download and install Node Package Manager(npm) from npmjs.com based on the OS either windows or IOS.
- Download and install Visual Studio Code to view the frontend code. This is optional.
In order to execute the project files following are the steps:
- Open IntelliJ IDEA and navigate to ‘service’ folder of the project.
- Run the command: ./gradlew run. This will open the project on 9000 port.
- Open command prompt as administrator.
- Create the frontend app with the command: create-react-app [projectFrontendName]
- Navigate to ‘ui’ folder of the project.
- Run the command: npm install. This will install all the necessary packages for the frontend of the project.
- Run the command: npm start to start the project. This will open the project on port 3000.
- Open the browser and type the URL: http://localhost:3000/Home