"# 🛠️ HobbyHub Server – Backend API for Local Hobby Groups
This is the backend server for the HobbyHub platform – a system where users can create, manage, and join hobby-based groups such as book clubs, painting circles, or hiking crews. Built with Express.js and MongoDB, the API handles group operations, user authentication, and protected route handling using JWT tokens and cookies.
👉 [https://hobbyhub-server.vercel.app]
- 🧾 RESTful API to manage hobby groups
- 🔐 JWT-based Authentication
- 🧑💻 User data validation with middleware
- 📤 Create, update, delete, and retrieve groups
- 🔒 Secure cookie-based token system
- 🌐 CORS configured for frontend access
-
Step 1: Clone the server repository --git clone https://github.com/yourusername/Hobbyhub-server.git
-
Step 2: Navigate into the project folder --cd hobbyhub-server
-
Step 2: Install dependencies npm install
-
Step 3: Create a
.envfile with the following variables PORT=5000 DB_URI=your_mongodb_uri ACCESS_TOKEN_SECRET=your_jwt_secret CLIENT_URL=http://localhost:5173 -
Step 4: Run the server node index.js
-
OR (for development) npx nodemon index.js
express
cors
dotenv
mongoose
jsonwebtoken
cookie-parser
"
fix