An awesome tour booking site built on top of NodeJS.
Demo โข Key Features โข How To Use โข API Usage โข Deployment โข Build With โข To-do โข Acknowledgement
Live demo: https://natours-louis.herokuapp.com
- Authentication and Authorization
- Login and logout
- Tour
- Manage booking, check tours map, check users' reviews and rating
- User profile
- Update username, photo, email, and password
- Credit card Payment
- Login to the site as user: [email protected] ("test1234")
- Search for tours that you want to book
- Book a tour
- Proceed to the payment checkout page
- Enter the card details:
- Card No. : 4242 4242 4242 4242 - Expiry date: 02 / 22 - CVV: 222
- Finished!
- Check the tour you have booked in "Manage Booking" page in your user settings. You'll be automatically redirected to this page after you have completed the booking.
- You can update your own username, profile photo, email and password.
Before using the API, you need to set the variables in Postman depending on your environment (development or production). Simply add:
- {{URL}} with your hostname as value (Eg. http://127.0.0.1:3000 or http://www.example.com)
- {{password}} with your user password as value.
Check Natours API Documentation for more info.
The website is deployed with git into heroku. Below are the steps taken:
git init
git add -A
git commit -m "Commit message"
heroku login
heroku create
heroku config:set CONFIG_KEY=CONFIG_VALUE
parcel build ./public/js/index.js --out-dir ./public/js --out-file bundle.js
git push heroku master
heroku open
You can also changed your website url by running this command:
heroku apps:rename natours-users
- NodeJS - JS runtime environment
- Express - The web framework used
- Mongoose - Object Data Modelling (ODM) library
- MongoDB Atlas - Cloud database service
- Pug - High performance template engine
- JSON Web Token - Security token
- ParcelJS - Blazing fast, zero configuration web application bundler
- Stripe - Online payment API
- Postman - API testing
- Mailtrap & Sendgrid - Email delivery platform
- Heroku - Cloud platform
- Review and rating
- Allow user to add a review directly at the website after they have taken a tour
- Booking
- Prevent duplicate bookings after user has booked that exact tour, implement favourite tours
- Advanced authentication features
- Signup, confirm user email, login with refresh token, two-factor authentication
- This project is part of the online course I've taken at Udemy. Thanks to Jonas Schmedtmann for creating this awesome course! Link to the course: Node.js, Express, MongoDB & More: The Complete Bootcamp 2019