Cineaura is a full-stack website for managing cinemas, featuring an authentication and booking system.
The Cineaura website offers several features, including:
- User Authentication: Registration and login for users/admins.
- Ticket Booking: System for selecting movies and showtimes.
- Movie Listings: Display of available movies with details like plot, cast, and ratings.
To run the project, make sure you have the following prerequisites:
- Node.js [Guide NVM]
- Clone the repository:
git clone https://github.com/Picred/cineaura.git
cd cineaura- Install the dependencies for both backend and frontend:
# Backend
cd backend
npm install
# Frontend
cd ../frontend
npm installThe database is managed via SQLite. You don't need to install or configure any external database server like MySQL. The schema and seed data are initialized automatically on the first run of the backend.
To run the project locally with hot-reloading:
-
Start the Backend:
cd backend npm run devThe backend will run on
http://localhost:8080. On start, it will create/updatesrc/db/database.sqlite. -
Start the Frontend:
cd frontend npm run devThe frontend will run on
http://localhost:5173. It is configured to proxy API requests to the backend.
If you want to run the production build:
-
Build the frontend:
cd frontend npm run buildThis will generate the static files in
../backend/public. -
Start the server:
cd backend npm startAccess the website at
http://localhost:8080.
