This repository contains the backend server for the Meetup App. It is responsible for managing events data, handling API requests, and communicating with the MongoDB database.
The backend is built using Node.js, Express.js, and MongoDB (Mongoose), following a clean and minimal REST API structure.
🔗 Backend Base URL: https://meetup-app-backend-eac.vercel.app/
- 📋 Fetch all meetup events
- 🔍 Fetch a single event by ID
- 🧠 Centralized database connection logic
- ⚡ RESTful API design
- 🌍 CORS-enabled for frontend integration
- 🧩 Clean and minimal server structure
- Node.js
- Express.js
- MongoDB
- Mongoose
- CORS
meetup-app-backend/
├── db/
│ └── db.connect.js # Database connection logic
├── models/
│ └── event.model.js # Event schema and model
├── index.js # Express server entry point
├── package.json
├── package-lock.json
└── README.md
Create a .env file in the root of the project:
PORT=3000
MONGODB_URI=your_mongodb_connection_stringgit clone https://github.com/ajmal92786/meetup-app-backend.git
cd meetup-app-backendnpm installnpm startServer will run on: 👉 http://localhost:3000
GET /Response:
Welcome to my Meetup App Server.GET /eventsSuccess Response (200):
{
"success": true,
"events": [
{
"_id": "eventId",
"title": "Tech Conference",
"hostedBy": "Tech Innovators",
"type": "Offline",
"thumbnail": "https://images.unsplash.com/photo",
"description": "Stay ahead in the world of technology ...",
"startDateTime": "date",
"endDateTime": "date",
"venue": "Tech City Convention Center",
"address": "101 Innovation Drive, City",
"price": 2500,
"speakers": [
{
"_id": "id",
"name": "Amit Verma",
"designation": "CTO, CloudNova",
"image": "https://images.unsplash.com/photo"
}
],
"dressCode": "Business casual",
"ageRestriction": "18 and above",
"tags": ["technology", "conference", "web"]
}
]
}Error Response (404):
{
"success": false,
"message": "No events found."
}GET /events/:eventIdSuccess Response (200):
{
"success": true,
"event": {
"_id": "eventId",
"title": "Tech Conference",
"venue": "Tech City Convention Center",
"price": 2500,
...
}
}Error Response (404):
{
"success": false,
"message": "Event not found."
}This backend is consumed by the Meetup frontend application:
🔗 Frontend Repo: https://github.com/ajmal92786/meetup-app-frontend
The frontend communicates with this server using REST APIs and fetches data in JSON format.
For bugs or feature requests: