Khet Market is a web-app through which farmers can sell crops to and buy equipment directly from other merchants without any third-party mediation.To avoid price inflation and maintain regularized selling, the app validates any purchase through the use of MSP for pricing and the buyer must adhere to it.The app also incorporates image integration for crops so the buyer can decide whether to proceed with the transaction.The app also incorporate payment authentication which help both parties avoid extra middleman costs and helps in creating of a completely self – independent virtual market space to empower both the buyer and seller.
These are the main pages of our web app along with the description.
-
Home Page - This is the home page of our application. It details all the utilities our app provides.
-
Login - This page lets the registered user to login into his/her dashboard.
-
Register - The user can register himself/herself by filling out the appropriate choices and details asked for the verification. We have integrated a minimum character limit to rule out vague and ambigious details.
-
BuyOrSell - This page acts as a gateway and provides the user to choice between buying goods and selling crops and redirects them to the appropriate page.
-
Buy: In this section, we designed an E-commerce kind of front-end where a farmer can purchase farming products like seeds, fertilizers, tractors, etc.
-
Checkout - This is the landing page after the user has selected his items and proceed further to review the items they added in the basket.
-
Payment - Here, the user can fill the details for completing the transaction.
-
Orders - This page helps the user to review their purchased items along with their unique order ids, address, and costs.
-
Sell - Here we have enforced the farmer to sell his/her crops above Minimum Support Price(MSP). Through the use of MSP, we are making farmers aware of the true market value for their goods and help them in creating a stronger negotiating position for themselves.
-
Selling Item - This page helps the user review their sold crops along with their addresses, type of the crop,and price asked for it.
- NodeJs
- Working Firebase account
- Download Nodejs - For downloading nodejs goto this link.
- Now goto firebase. Login to firebase with your google account.
- Goto console and click on Add Project.
- Enter the name of the project and all the required information and proceed.
- Your project will be created on firebase.
- Now on the dashboard, click on web icon. It will register the app in your project. Now enter all the necessary information about your app and click create.
- Now your app is added to the project.
- Goto Firestore Database. Click on Create Database. Then click on Start in Test Mode and keep all the information by default.
- Goto Authentication. Click on Get Started. Now hover on Email/Password and click the pencil icon(edit icon). Enable the method and click Save.
- Now, next to Project Overview, click on Settings icon and click Project Settings.
- Scroll to the bottom of the settings page. In Your apps section, under Firebase SDK snippet, click on Config. Now copy the contents of FirebaseConfig and paste it somewhere.
- Clone this repository -
git clone https://github.com/pranjals149/Khet-Market.git
- Move into the cloned repository -
cd Khet-Market
- Now, install the required dependencies -
npm install
- Move in the funtions directory -
cd functions
- Now, inside functions directory, install the required dependencies for running the backend server of the app -
npm i
- Inside the functions directory, start the express backend server -
firebase emulators:start
- Now, open firebase.js file inside src, and paste the content of FirebaseConfig(copied from firebase console) in place where previous FirebaseConfig was declared.
- Now, back to the main project directory, start the react development server -
npm start
- Now the application is Up and running on PORT NO. - 3000