Skip to content

Ratul8863/Hobby-hub-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"# 🛠️ 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.


🌐 Live Server

👉 [https://hobbyhub-server.vercel.app]


📦 Features

  • 🧾 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

🧱 Backend Tech Stack

Node.js Express.js MongoDB Atlas Mongoose Cookie Parser dotenv CORS


  • 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 .env file 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

📦 Dependencies (Client)

express
cors
dotenv
mongoose
jsonwebtoken
cookie-parser
"

fix

About

Express + MongoDB API backend for HobbyHub. Supports auth, group management & protected routes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors