A simple and efficient car wash booking system.
This project is a Car Wash Booking System that allows users to book car wash services conveniently. It utilizes a MongoDB database for storing user and booking information, and JSON Web Tokens (JWT) for authentication.
- TypeScript: The primary programming language for its type safety and modern features.
- Express.js: The web framework for building the API.
- Mongoose: The Object Data Modeling (ODM) library for MongoDB, used for data validation and schema modeling.
- User registration and authentication
- Booking car wash services
- JWT-based authentication
- Password hashing using bcrypt
-
Clone the repository
git clone https://github.com/ekramul28/Car-Wash-Booking-System-server.git cd car-wash-booking-system
-
Install dependencies
npm install
or if you use yarn
yarn install
To run this project, you will need to add the following environment variables to your .env
file in the root directory of your project:
PORT=your port
NODE_ENV=development
DATABASE_URL=give your mongodb url name and password
BCRYPT_SALT_ROUNDS=12
JWT_ACCESS_SECRET=give your secret
JWT_ACCESS_EXPIRES_IN=give your expires
JWT_ACCESS_EXPIRES_IN=1d
JWT_REFRESH_EXPIRES_IN=1d