BookingApp

Booking platform for apartment owners

BookingApp is a full MVP booking platform for small apartment owners. Owners manage their listings, prices and reservations in an admin dashboard, and guests get a simple flow to search for a free apartment and book it. Two React apps, the admin dashboard and the guest app, plus a landing page with a contact form, share one Node.js backend.

In the admin dashboard, owners sign in with JWT authentication that refreshes the session automatically. They add and edit apartments with photos and amenities, build reusable price lists with a different nightly price for each period, follow every booking in a calendar or list view and read the messages from the contact form. Deleting something asks you to type its name first, and there is a light and a dark theme. In the guest app, people search by dates and number of guests, browse the apartment details and photos, then book with their contact details and land on a confirmation page.

Most of the logic lives in the backend. Prices are always calculated on the server, night by night, from the price list periods, so the client can never send its own total. A booking claims its dates with a single conditional database update, which stops two guests from booking the same dates at once. Dates are stored as calendar days in UTC, and the unit tests for availability and pricing run in two different time zones to prove the results don't depend on where the server is.

Both frontends use React with Vite, Tailwind CSS and React Router, and the admin adds TanStack Query for server state. The backend is Node.js and Express with MongoDB and Mongoose, JWT with refresh token rotation, bcrypt for passwords and Multer for image uploads. It is moving to TypeScript one file at a time and is tested with Jest. The frontends run on Netlify, the API on Render and the database on MongoDB Atlas.

  • TypeScript
  • Node.js
  • Express
  • MongoDB
  • Mongoose
  • JWT
  • React
  • Vite
  • Tailwind CSS
  • React Router
  • TanStack Query
  • Jest
  • Netlify
  • Render