https://github.com/promete00/managerestaurantbackend
This is the backend of a restaurant management system built with Spring Boot. It helps to manage tables, menus, products, orders, waiters, reservations, and more. The project is organized with controllers, DTOs, models, and repositories. It is useful for a restaurant or a point-of-sale system.
https://github.com/promete00/managerestaurantbackend
backend crud-application hibernate java jpa mysql-database rest-api restaurant restaurant-management restaurant-management-system restaurant-website spring-boot
Last synced: 3 months ago
JSON representation
This is the backend of a restaurant management system built with Spring Boot. It helps to manage tables, menus, products, orders, waiters, reservations, and more. The project is organized with controllers, DTOs, models, and repositories. It is useful for a restaurant or a point-of-sale system.
- Host: GitHub
- URL: https://github.com/promete00/managerestaurantbackend
- Owner: PROMETE00
- Created: 2025-06-21T20:09:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-21T21:16:51.000Z (about 1 year ago)
- Last Synced: 2025-06-21T22:22:14.319Z (about 1 year ago)
- Topics: backend, crud-application, hibernate, java, jpa, mysql-database, rest-api, restaurant, restaurant-management, restaurant-management-system, restaurant-website, spring-boot
- Language: Java
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Back Stack
Stack de backend del proyecto. Aquí vive la API Spring Boot, la base de datos y la configuración del modelo de datos.
## Estructura
```text
back/
├── src/ # Código Java y recursos
├── pom.xml # Dependencias Maven
├── Dockerfile # Imagen de la API
├── docker-compose.yml # Stack backend (API + MySQL)
├── .env.example
└── web2.sql # Referencia histórica del esquema previo
```
## Contexto del stack
- API Spring Boot 3.5
- Seguridad con sesión, roles y CORS restringido
- Migraciones con Flyway
- Persistencia MySQL
- Endpoints separados en:
- `/api/auth`
- `/api/admin`
- `/api/staff`
- `/api/public`
## Ejecutar con Docker
```bash
cd /home/prome/restaurante/back
docker compose up --build
```
Puertos:
- API: `http://localhost:8081`
- MySQL: `3306`
Variables principales:
- `DB_URL`
- `DB_USERNAME`
- `DB_PASSWORD`
- `APP_ALLOWED_ORIGINS`
- `BOOTSTRAP_ADMIN_NAME`
- `BOOTSTRAP_ADMIN_EMAIL`
- `BOOTSTRAP_ADMIN_PASSWORD`
## Ejecutar en local
```bash
cd /home/prome/restaurante/back
./mvnw spring-boot:run
```
## Notas
- Para compilar o correr tests hace falta un JDK completo con `javac`.
- El archivo `web2.sql` ya no es la fuente activa del esquema; la base actual vive en `src/main/resources/db/migration`.