All Projects → lgope → Natours

lgope / Natours

Licence: other
An awesome tour booking web app written in NodeJS, Express, MongoDB 🗽

Programming Languages

javascript
184084 projects - #8 most used programming language
Pug
443 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to Natours

react-app-simple-chat-app
A Simple Chat Application using MERN stack (MongoDB, Express JS, React JS, Node JS) and Socket.io for real time chatting
Stars: ✭ 41 (-56.38%)
Mutual labels:  css3, expressjs, mongodb-atlas
amazin
A MERN-stack app for eCommerce platform, Webshop, Web Store. Storybook: https://www.amazin.one/ Alternative: https://ntrix.github.io/amazin-story
Stars: ✭ 27 (-71.28%)
Mutual labels:  mongoose, helmet, mongodb-atlas
TvrboReact
Dream starter project: React, Redux, React Router, Webpack
Stars: ✭ 13 (-86.17%)
Mutual labels:  mongoose, expressjs, nodemailer
pothole detection
By using this app users can report the potholes on road by clicking a photo via our app and if a pothole is detected by Machine Learning modal then it is saved to our Database from where officials can view the specifics like location,reported by and official can resolve the request.User are notified by email for every update regarding their request
Stars: ✭ 17 (-81.91%)
Mutual labels:  mongoose, expressjs, nodemailer
Tvrboreact
Dream starter project: React, Redux, React Router, Webpack
Stars: ✭ 13 (-86.17%)
Mutual labels:  mongoose, expressjs, nodemailer
realestate
A simple real estate app build with MEAN( Angular, Node and mongoDb ) and MERN( React, Node and mongoDb )
Stars: ✭ 33 (-64.89%)
Mutual labels:  cors, mongoose
Pharmacy-Mangment-System
👨‍💻 🏥 MEAN stack Pharmacy Management system.
Stars: ✭ 229 (+143.62%)
Mutual labels:  mongoose, nodemailer
arc
Fullstack open source Invoicing application made with MongoDB, Express, React & Nodejs (MERN)
Stars: ✭ 1,291 (+1273.4%)
Mutual labels:  mongoose, nodemailer
Ecommerce Nodejs
Ecommerce application back-end codes
Stars: ✭ 97 (+3.19%)
Mutual labels:  cors, mongoose
nodejs-scaffolding
A node.js sample application that demonstrates an architecture for building a complete production API with Node.JS, Express.JS and MongoDB
Stars: ✭ 33 (-64.89%)
Mutual labels:  mongoose, expressjs
node-server-template
This is Node.js server tidy template / boilerplate with Express (with asyncified handlers, custom error handler) framework and MongoDb. The server use ES6 and above. On different branches you can see different techniques' and technologies' usage, such as Kafka, nodemailer, file download... You also can find postman collections.
Stars: ✭ 116 (+23.4%)
Mutual labels:  mongoose, nodemailer
MovieGo
A Website implemented using MERN (MongoDB, ExpressJS, ReactJS and NodeJS) stack, which allows users to sign-in/register and book movie tickets online.
Stars: ✭ 26 (-72.34%)
Mutual labels:  mongoose, expressjs
mern-stack-crud
MERN stack (MongoDB, Express, React and Node.js) create read update and delete (CRUD) web application example
Stars: ✭ 142 (+51.06%)
Mutual labels:  mongoose, expressjs
Express Es6 Rest Api
🔋 Starter project for an ES6 RESTful Express API.
Stars: ✭ 2,401 (+2454.26%)
Mutual labels:  cors, mongoose
Ecommerce
Angular 6 Ecommerce Application POC
Stars: ✭ 46 (-51.06%)
Mutual labels:  css3, mongoose
Typescript Restful Starter
Node.js + ExpressJS + Joi + Typeorm + Typescript + JWT + ES2015 + Clustering + Tslint + Mocha + Chai
Stars: ✭ 97 (+3.19%)
Mutual labels:  cors, expressjs
commerce
🛒 e-commerce-platform
Stars: ✭ 54 (-42.55%)
Mutual labels:  mongoose, expressjs
Compression
Node.js compression middleware
Stars: ✭ 2,506 (+2565.96%)
Mutual labels:  compression, expressjs
Cors
Node.js CORS middleware
Stars: ✭ 5,252 (+5487.23%)
Mutual labels:  cors, expressjs
express-mongo-jwt-boilerplate
Express Mongo JsonWebToken boilerplate
Stars: ✭ 100 (+6.38%)
Mutual labels:  mongoose, expressjs


Natours
Natours

An awesome tour booking site built on top of NodeJS.

DemoKey FeaturesDemonstrationHow To UseAPI UsageDeploymentBuild WithTo-doInstallationKnown BugsFuture UpdatesAcknowledgement

Deployed Version

Live demo (Feel free to visit) 👉 : https://lakshman-natours.herokuapp.com/

Key Features

  • 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

Demonstration

Home Page :

natoursHomePageonline-video-cutt

Tour Details :

tourOverviewonline-video-cutterc

Payment Process :

paymentprocess-1-ycnhrceamp4-7fW

Booked Tours :

rsz_bookedtours

User Profile :

rsz_userprofile

Admin Profile :

rsz_adminprofile

How To Use

Book a tour

  • Login to the site
  • Search for tours that you want to book
  • Book a tour
  • Proceed to the payment checkout page
  • Enter the card details (Test Mood):
    - Card No. : 4242 4242 4242 4242
    - Expiry date: 02 / 22
    - CVV: 222
    
  • Finished!

Manage your booking

  • 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.

Update your profile

  • You can update your own username, profile photo, email and password.

API Usage

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.

API Features:

Tours List 👉 https://lakshman-natours.herokuapp.com/api/v1/tours

Tours State 👉 https://lakshman-natours.herokuapp.com/api/v1/tours/tour-stats

Get Top 5 Cheap Tours 👉 https://lakshman-natours.herokuapp.com/api/v1/tours/top-5-cheap

Get Tours Within Radius 👉 https://lakshman-natours.herokuapp.com/api/v1/tours/tours-within/200/center/34.098453,-118.096327/unit/mi

Deployment

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

Build With

To-do

  • 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
  • And More ! There's always room for improvement!

Installation

You can fork the app or you can git-clone the app into your local machine. Once done that, please install all the dependencies by running

$ npm i
set your env variables
$ npm run watch:js
$ npm run build:js
$ npm run dev (for development)
$ npm run start:prod (for production)
$ npm run debug (for debug)
$ npm start
Setting up ESLint and Prettier in VS Code 👇
$ npm i eslint prettier eslint-config-prettier eslint-plugin-prettier eslint-config-airbnb eslint-plugin-node
eslint-plugin-import eslint-plugin-jsx-a11y  eslint-plugin-react --save-dev

Known Bugs

Feel free to email me at [email protected] if you run into any issues or have questions, ideas or concerns. Please enjoy and feel free to share your opinion, constructive criticism, or comments about my work. Thank you! 🙂

Future Updates

  • Enable PWA
  • Improve overall UX/UI and fix bugs
  • Featured Tours
  • Recently Viewed Tours
  • And More ! There's always room for improvement!

Acknowledgement

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].