Skip to content

Repository files navigation

GoFarm 🌾

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.


🛠️ Tech Stack

  • Frontend: React + TypeScript + Vite
  • Styling: Tailwind CSS
  • Icons: Lucide React
  • Backend: Node.js + Express
  • Database: MongoDB
  • Authentication: JWT
  • Role-based Access: Farmer and User

🚀 Features

👨‍🌾 For Farmers:

  • Register as a Farmer
  • Create a Farm
  • Post Farm Events

👤 For Users:

  • Register as a User
  • Browse available Farm Posts
  • Book slots for events
  • Submit Reviews & Ratings after the visit

⚠️ Important Setup Notes

This repository does not include any MongoDB data.

🔗 Update MongoDB Connection

Before running the project, update your MongoDB connection URL:

  1. Go to: backend/.env

  2. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages