This project is a Farmer's Portal that provides farmers with essential information and services. The portal includes functionalities for user authentication, storing farmer data, and accessing government schemes based on their region.
- User authentication using JWT.
- CRUD operations for farmer information.
- Access to government schemes based on the farmer's region.
- Audio description of schemes.
- Client: React, Axios
- Server: Node.js, Express.js, MongoDB, Mongoose, JWT
- Database: MongoDB
- Node.js and npm installed.
- MongoDB installed and running.
.env
file with the following environment variables:
git clone https://github.com/mohamedkaif10/farmers-portal.git
cd farmers-portal
cd client
npm install
cd ../server
npm install
Create a .env
file in the server
directory and add the following:
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
PORT=5000
- Client-side
npm start
- Server-side
npm run dev
- Open your browser and navigate to
http://localhost:3000
for the client andhttp://localhost:5000
for the server API.