A booking.com backend system built with Nodejs, multer, express, Prisma ORMs, Supabase/PostgreSQL.
1. Adding New Features : You can request a feature by raising an issue and submit valuable solutions by creating a pull request.
- You can contribute by adding new features to the project.
2. Bugs or Error
- Bug fixing and reporting bugs that you find in the code.
3. Register an Issue for any Feature Requests / Ideas
- The issue will be reviewed. If it is approved, then it will be assigned. Before making a pull request, please register your idea as an issue so we can discuss it first. This will help us avoid unnecessary work and make the repository maintainable.
-
Fork this repository.
-
Clone this repository.
[email protected]:<USERNAME>/booking.com-backend.git
- Navigate to the project directory.
cd booking.com-backend
-
Setup .env file by following this steps
- Copy .env.sample file by running this command in your terminal
cp .env.sample .env
- Add your Mongo Atlas database url in .env file
PORT = 3000 <!-- Add your Supabase/PostgreSQL database url in .env file --> DATABASE_URL = <!-- Add here the secret --> SECRET =
-
Run Migrations for your prisma database
- Generate Prisma Clients
npx prisma generate
- Run Migrations
npx prisma migrate dev
-
Create new branch
git checkout -b <your_branch_name>
- Make changes.
- Stage your changes and commit
git add -A
git commit -m "<your_commit_message>"
- Push your local commits to the remote repo.
git push -u origin <your_branch_name>
- Create a Pull Request.
- Congratulations! 🎉 you've made your contribution.