“Wasale” is a popular delivery company that wants to build a food delivery system that facilitates ordering food from different restaurants. The system shall support adding/removing different restaurants to the restaurant catalog.
Backend: Java, Spring-Boot.
This repo is only for Order
micro-service.
-
-
docs/ERD/OrderService_new-ERD.drawio
├── api # contains the app interface with the client
│ │
│ ├── controller # contains the controller classes
│ │
│ └── dto # contains the Data Transfer object classes
│
├── config # contains app config
│ │
│ ├── mapper # contains mappers between entities and DTOs
│ │
│ └── SwaggerConfig.java # constain swagger config
│
├── helper # contains static helper func
│
├── persistent # contains DB logic
│ │
│ ├── entity # contains DB entity
│ │
│ ├── enum_ # contains enums
│ │
│ ├── seed # contains DB seeders
│ │
│ └── repository # contains DB calls
│
└── service # contains business logic
- Make a file with name
secrets.properties
in dirsrc/main/resources/
. - Write the secrets variables to the file.
- Note: Change the variables based on your configurations.
# Database
DB_NAME=order_service
DB_USER=postgres
DB_PASS=postgres
DB_PORT=5432
DB_HOST=localhost
# Server
SERVER_PORT=8080
# Other Microservices URL
CUSTOMER_SERVICE_URL=http://localhost:8081
Run the following command to install dependance
mvn clean install
Run the following command to list dependance
mvn dependency:tree
Run the following command to start the app
mvn spring-boot:run
Navigate to the following URL to test the APIs
http://localhost:8080/webjars/swagger-ui/index.html
POSTGRES_USER=postgres
POSTGRES_PASSWORD=123
POSTGRES_DB=order_service
- docker-compose build
- docker-compose up
- Ala Al-Sanea -
Project Owner
- Adam Almohammedi -
Scrum Master
- Amjad Al-Aghbari
- Adel Subait
- Waledd Thamer