Backend service for the Turf Booking System, handling admin authentication, booking management, and slot availability.
Welcome to the Turf Booking System backend repository! This service is an essential part of the platform, managing user bookings, slot availability, and providing a seamless experience for both guests and admins. The backend is built using Node.js, Express, and MongoDB, ensuring reliable and efficient operations.
The Backend service is deployed on serverless AWS Lambda, providing high availability and scalability. The database is hosted on MongoDB Atlas, providing a reliable and secure database solution.
Database schema and collections:
API Endpoints:
This section provides a quick start guide to get the Turf Booking Backend up and running on your local machine for development and testing purposes.
Ensure that you have the following installed on your local development machine:
Fork the Repository: Click on the 'Fork' button at the top right corner of this page. This will create a copy of this repository in your GitHub account.
Clone the Repository: Clone the forked repository to your local machine. To clone a repository, click on the 'Code' button at the top right corner of the repository page, and copy the HTTPS URL. Then, run the following command in your terminal:
git clone [email protected]:10kartik/turf-reservation-api.git
npm install
ENVIRONMENT=development
DB_SUFFIX=dev
APP_NAME=turf-reservation-api
PORT=3000
JWT_SECRET=secret
MONGODB_CONNECTION_STRING=mongodb+srv://<username>:<password>@<host>/<database>?retryWrites=true&w=majority
npm start
That's it! The server should now be running at http://localhost:8080.