Skip to content

alezlimon/spm-back-end

Repository files navigation

Reva — Backend

Node.js Express MongoDB JWT

Overview

This is the backend for Reva, a hotel operations dashboard built with Node.js, Express, and MongoDB. It handles all business logic, authentication, and data management for rooms, bookings, guests, billing, and properties.

Main Features

  • REST API for properties, rooms, bookings, guests, and billing
  • JWT authentication
  • Mongoose schema modeling
  • Seeded data available for demo/testing purposes
  • Property logic supports both hotel-style and villa-style behavior

Tech Stack

  • Node.js
  • Express
  • MongoDB
  • Mongoose
  • JWT authentication
  • bcrypt

Run Locally

cd spm-back-end
npm install
npm run dev

Environment Variables

Create a .env file with:

MONGODB_URI=your_mongo_uri JWT_SECRET=your_secret ORIGIN=http://localhost:5173 PORT=5005

Notes

  • Business logic is mainly handled here
  • Data can be seeded for demo/testing purposes
  • Properties support different operational logic, including hotel and villa behavior

Credits

  • Luana Aguilo
  • Alejandro Perez

Related

License

This project is licensed under the MIT License.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors