UniSierra Eats has no cloud dependencies — everything runs from a single Node.js process on your local machine. Follow the steps below to go from zero to a running server in under five minutes.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/JuseAR27/Unisierra-eats/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Node.js v18 or newer — nodejs.org/en/download
- npm (bundled with Node.js)
Setup Steps
Install Dependencies
Install the two runtime dependencies — Express and the SQLite3 driver:This resolves and installs:
No build step or bundler is required. The frontend is plain HTML, CSS, and JavaScript.
| Package | Version |
|---|---|
express | ^5.2.1 |
sqlite3 | ^6.0.1 |
Initialize the Database
Run the database setup script to create the SQLite file and seed it with sample data:The script creates
Expected console output:
unisierra_eats.db in the project root and sets up four tables:| Table | Description |
|---|---|
Roles | Two roles: Administrador (id 1) and Estudiante (id 2) |
Usuarios | User accounts with name, email, password, and role |
Productos | Cafeteria products with price, category, description, and image |
Resenas | Reviews with rating (1–5), comment, status, and timestamp |
Start the Server
Launch the Express server:You should see the following confirmation in your terminal:The server listens on port 3000 and serves all static files (HTML, CSS, JS) directly from the project directory alongside the REST API.
Open the App in Your Browser
Navigate to http://localhost:3000 in any modern browser.The entry-point
After a successful login, the session object is saved to
index.html checks localStorage for an existing session under the key unisierra_sesion. Since no session exists yet, it redirects you to the student-facing login and registration page at public/index.html.To access the admin panel, log in with the seeded administrator account:| Field | Value |
|---|---|
admin@unisierra.edu.mx | |
| Password | admin123 |
localStorage and the app redirects to admin/panel_admin.html.Next Steps
Now that your server is running, explore the following sections to understand how the platform works under the hood:- Authentication — login flow, session storage, and the institutional email restriction
- API Overview — full reference for the REST endpoints covering products, users, and reviews