Co-working space reservation system that allows users to browse, book, and manage shared workspaces, private offices, and meeting rooms. The system is built using Node.js, Express, and MongoDB.
- User authentication and management
- Browse and book different types of rooms
- Manage bookings
- Payment integration via Stripe
- RESTful API endpoints
- Node.js (latest LTS version recommended)
- MongoDB (local or cloud-based, e.g., MongoDB Atlas)
-
Clone the repository:
git clone https://github.com/kanajash/CCAPDEVMP.git cd ccapdev -
Install dependencies:
npm install
-
Configure the database connection:
- Edit
db.jsand replace the MongoDB connection string with your own.
- Edit
-
Start the server:
nodemon server.js (should be run at appdevmp)
-
Start the client:
npm start (should be run at client)
/
|-- routes/ # API route handlers
|-- models/ # Database schemas/models
| |-- booking.js # Booking model
| |-- room.js # Room model
| |-- user.js # User model
|-- public/ # Static assets (if applicable)
|-- views/ # Front-end templates (if applicable)
|-- db.js # Database connection
|-- server.js # Main application entry point
|-- package.json # Project metadata and dependencies
|-- README.md # Documentation
GET /api/rooms- Get all available roomsGET /api/rooms/:id- Get room detailsPOST /api/rooms- Add a new room (admin only)
POST /api/users/register- Register a new userPOST /api/users/login- Authenticate user
POST /api/bookings- Create a new bookingGET /api/bookings/user/:userid- Get bookings for a user