restaurant service on Spring Boot
There are roles: Customer, Manager.
The customer (authorized user) makes orders from the menu (the catalog of dishes). He can filter the list of dishes by categories and has the opportunity look through the catalog with sorting:
- by the name of the dish;
- by price;
- by category.
The customer, within one order, can order several identical dishes.
The manager manages orders: after receiving a new order, sends it for cooking. After cooking, the manager transfers order for delivery. After delivery and receipt of payment, the manager transfers the status of the order to "done".
- Front-End - HTML, CSS, JavaScript, AngularJS
- Back-end - Java 8, SQL
- Spring Boot
- Spring Security
- PostgreSQL
- Maven
-
git clone https://github.com/trohalska/restaurant
-
apply maven wrapper:
mvn -N io.takari:maven:wrapper
-
postgreSQL database:
3.1. Install PostgreSQL.
3.2. Create user and databases:
psql postgres; CREATE USER root WITH PASSWORD [your password]; CREATE DATABASE [your login]; CREATE DATABASE restaurant; exit;
3.3. Write postgresql password (for root) in
application.properties
(src/main/resources/application.properties) as password field.3.4. You can insert basic data to database tables from
data.sql
file. Basic manager: loginmanager
, passwordpassword
will be created by application. -
run server:
./mvnw spring-boot:run
-
open website:
https://localhost:8080