Backend · APIBackend / API
Tours API
A tour booking service: tours with locations and dates, booking and payment through Stripe, reviews, notifications and user accounts with roles, plus a React front end, documented in Swagger.
- Status
- Live
- Role
- Sole engineer: built the API and the front end
- Timeline
- Dec 2023 – Feb 2025

Built with
- Node.js
- Express
- MongoDB
- Stripe
- JWT
- Swagger
- React
The evidence
My part
Sole engineer: built the API and the front end
- Built the API in Node.js, Express and MongoDB, over 102 commits
- Built accounts: sign-up with email verification, login with refresh tokens, password reset and update, roles, and deactivation
- Built tours with geospatial search: tours within a distance of a point, and distances from a point
- Built aggregation reports: tour statistics, the five cheapest tours, and a monthly plan
- Built booking and payment through Stripe, reviews, and notifications
- Hardened it with Helmet, rate limiting and input sanitising; resized uploaded images with Sharp
- Documented the API in Swagger and built a React front end for it
What changed.
Measured in production, not in a demo.
Geospatial search and aggregation reports on MongoDB
Booking paid through Stripe
Rate limiting and input sanitising on every request
Chapter 01
What it does
Tours API runs a tour company's bookings. Tours carry their locations and dates, so customers can find tours within a distance of where they are and see how far each one is. Customers book and pay through Stripe and leave reviews afterwards; staff see statistics, the cheapest tours and a monthly plan of starts.
Chapter 02
Built carefully
Accounts use email verification, short-lived access tokens with refresh tokens, and roles. Every request passes through Helmet, a rate limiter and input sanitising before it reaches the database. Uploaded photos are resized with Sharp. Everything is documented in Swagger.
Chapter 03
Built with
Node.js, Express and MongoDB with Mongoose, JSON Web Tokens, Stripe, Nodemailer, Multer and Sharp, Swagger, and a React front end with Vite.
