- Node.js (v18+ recommended)
- MongoDB database (local or cloud)
- Razorpay account (for payment keys)
- Install MongoDB Community Edition from https://www.mongodb.com/try/download/community
- Start MongoDB server locally:
- On Windows, run:
(Replace
"C:\Program Files\MongoDB\Server\<version>\bin\mongod.exe" --dbpath="C:\data\db"
<version>with your installed version. CreateC:\data\dbif it doesn't exist.) - On Mac/Linux, run:
mongod --dbpath ~/data/db
- On Windows, run:
- The default local connection string is:
mongodb://localhost:27017/meatbooking
- Open a terminal and navigate to the
serverdirectory:cd server - Install dependencies:
npm install
- Create a
.envfile inserver/with the following:MONGO_URI=mongodb://localhost:27017/meatbooking JWT_SECRET=your_jwt_secret RAZORPAY_KEY_ID=your_razorpay_key_id RAZORPAY_KEY_SECRET=your_razorpay_key_secret PORT=5000
- Start the backend server:
node index.js
- Open a new terminal and navigate to the
clientdirectory:cd client - Install dependencies:
npm install
- Start the React app:
npm start
- Register or log in as a user.
- Book meat orders and pay via Razorpay.
- View your orders in the summary.
- Log in as an admin to view/manage all orders.
- Update API URLs if deploying to production.
- Replace all placeholder keys and secrets with your actual credentials.