{"id":16213834,"url":"https://github.com/solygambas/node-tour-operator-booking-app","last_synced_at":"2025-03-19T09:31:10.999Z","repository":{"id":38651524,"uuid":"276555258","full_name":"solygambas/node-tour-operator-booking-app","owner":"solygambas","description":"A tour operator booking app with a REST API using MongoDB, Mongoose, Express and Stripe.","archived":false,"fork":false,"pushed_at":"2023-10-09T17:15:58.000Z","size":39374,"stargazers_count":9,"open_issues_count":47,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-28T17:46:57.186Z","etag":null,"topics":["bun","deno","express","expressjs","fastify","firebase","javascript","mongodb","mongoose","nestjs","node","nodejs","notion-api","oak","pug","rest-api","stripe","typescript","websocket","websockets"],"latest_commit_sha":null,"homepage":"https://node-travel-app.onrender.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solygambas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-02T05:17:59.000Z","updated_at":"2024-10-24T21:07:59.000Z","dependencies_parsed_at":"2024-10-27T20:40:53.395Z","dependency_job_id":null,"html_url":"https://github.com/solygambas/node-tour-operator-booking-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solygambas%2Fnode-tour-operator-booking-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solygambas%2Fnode-tour-operator-booking-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solygambas%2Fnode-tour-operator-booking-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solygambas%2Fnode-tour-operator-booking-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solygambas","download_url":"https://codeload.github.com/solygambas/node-tour-operator-booking-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243982141,"owners_count":20378605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","deno","express","expressjs","fastify","firebase","javascript","mongodb","mongoose","nestjs","node","nodejs","notion-api","oak","pug","rest-api","stripe","typescript","websocket","websockets"],"created_at":"2024-10-10T11:08:43.101Z","updated_at":"2025-03-19T09:31:05.988Z","avatar_url":"https://github.com/solygambas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tour Operator Booking App\n\nA tour operator booking app with a REST API using MongoDB, Mongoose, Express and Stripe.\n\n## 1) Node.js Basics - Node Farm\n\nA very simple API to understand Node.js and NPM basics.\n\n[See node-farm folder](node-farm)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"node-farm\"\u003e\n    \u003cimg src=\"node-farm/screenshot.png\" alt=\"Screenshot of Node Farm\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### Features\n\n- using core modules, third-party modules and our own modules.\n- reading and writing files with fs.\n- building a basic server with http.createServer and handling routes.\n- building templates and parsing variables from URLs.\n- creating nice URLs with slugify.\n\n## 2) Tour Operator Booking App - Natours\n\nA tour operator booking app with a REST API using MongoDB, Mongoose, Express and Stripe.\n\n[See Demo deployed on Render](https://node-travel-app.onrender.com/)\n\n[See API documentation on Postman](https://documenter.getpostman.com/view/11993746/T17Ke7HH?version=latest)\n\n[See natours folder](natours)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://node-travel-app.onrender.com/\"\u003e\n    \u003cimg src=\"natours/screenshot.png\" alt=\"See Demo deployed on Render\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### Key features\n\n- building a REST API with Express, logging requests with Morgan and sending JSend responses.\n- using the MVC (Model-View-Controller) architecture with separate routers.\n- rendering a server-side website with Pug templates.\n- handling log in, sign up and book tour actions with JavaScript and Axios.\n- displaying day-by-day itinerary for each tour with Mapbox.\n- showing user-friendly alerts with success/error messages.\n- updating user settings, profile picture and showing bookings in user dashboard.\n- accepting credit card payments with Stripe Checkout and listening to Stripe webhooks.\n- sending emails with Pug templates, Nodemailer, Mailtrap and Sendgrid.\n- uploading files with multer and processing images with sharp.\n- deploying on Render.\n\n### MongoDB and Mongoose\n\n- performing CRUD operations with MongoDB database locally and on MongoDB Atlas.\n- writing a script to import data into MongoDB.\n- filtering, sorting, aliasing and handling pagination with Mongoose.\n- manipulating data with aggregation pipeline and operators.\n- leveraging Mongoose pre and post hooks: document middleware, aggregate middleware and query middleware.\n- validating data and creating custom validators with Mongoose schemas and validator.\n- modeling relationships between data, embedding and referencing.\n- creating a factory function for CRUD operations on Tours, Users, Reviews and Bookings.\n- using indexes, modeling geospatial data with $geoWithin and $geoNear operators.\n- publishing API documentation on Postman.\n\n### Error handling\n\n- handling operational errors and programmer errors with a middleware wrapping all async controllers.\n- sending complete error messages in development and user-friendly messages in production.\n- having a safety net for unhandled promise rejections, uncaught exceptions and SIGTERM signals with process.on.\n- debugging with ndb.\n\n### Authentication and authorization\n\n- hashing passwords with bcryptjs.\n- building a complete authentication workflow with JWT: user sign up, log in and reset password via email.\n- protecting routes and restricting access according to user role (user, guide, lead guide, admin).\n\n### Security\n\n- implementing security best practices with express-rate-limit, helmet and CORS.\n- sending tokens in secure cookies and reading them with cookie-parser.\n- sanitizing data with express-mongo-sanitize, xss-clean and hpp.\n\nBased on [Node.js, Express, MongoDB \u0026 More: The Complete Bootcamp](https://www.udemy.com/course/nodejs-express-mongodb-bootcamp/) by Jonas Schmedtmann (2019).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolygambas%2Fnode-tour-operator-booking-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolygambas%2Fnode-tour-operator-booking-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolygambas%2Fnode-tour-operator-booking-app/lists"}