GoFarm is a full-stack web platform where users can explore farm visit opportunities and review their experiences, while farmers can register farms and post about upcoming farm events.
- Frontend: React + TypeScript + Vite
- Styling: Tailwind CSS
- Icons: Lucide React
- Backend: Node.js + Express
- Database: MongoDB
- Authentication: JWT
- Role-based Access: Farmer and User
- Register as a Farmer
- Create a Farm
- Post Farm Events
- Register as a User
- Browse available Farm Posts
- Book slots for events
- Submit Reviews & Ratings after the visit
This repository does not include any MongoDB data.
Before running the project, update your MongoDB connection URL:
-
Go to: backend/.env
-
Replace the placeholder with your MongoDB URI:
MONGODB_URI=mongodb+srv://<username>:<password>@cluster0.mongodb.net/gofarm?retryWrites=true&w=majority
✍️ Platform Usage Instructions
For Farmers:
Sign up as a Farmer
Create a Farm
Only after creating a farm, you can create a Farm Post
For Users:
Sign up as a User
Browse Farm Posts
Book a visit slot
After your visit, go to the Reviews section to submit a review
🧑💻 Running the Project Locally
# Step 1: Clone the repo and navigate to the folder
git clone https://github.com/your-username/gofarm.git
cd gofarm
# Step 2: Install dependencies
npm install
# Step 3: Start the development server
npm run dev