Skip to content

LilianaGallego/SmallSquareMicroservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


PRAGMA POWER-UP

This repository contains the small square microservice that the restaurant creates, the dishes according to the category and the orders. In the database, the category is entered into the category table manually.

The implementation of this microservice begins with the creation of the restaurant that a user with the role of owner must have and the creation of a dish that belongs to a restaurant and that has an assigned category, update of the dish, security of the routes is added, the employee is created, the dish is enabled or disabled, all the restaurants are listed with pagination and the dishes are listed by category id and restaurant id by role consumer, @Setter private static Long idUser, make an order, list order by state, assign order to employee, update status order, notify order state ready, update state order to delivered and cancel order

Built With

  • Java
  • Spring
  • Gradle
  • MySQL

Steps to keep in mind

It contains the connection with the relational database in MySql, for which the powerup name database must be created and

Built With

  • Java
  • Spring
  • Gradle
  • MySQL

Prerequisites

Recommended Tools

Getting Started

To get a local copy up and running follow these steps:

  1. Clone the repository

  2. Create a database in MySql with the smallsquare

  3. Update the credentials must be modified in the application-dev.yml file. img.png

  4. Run the microservice by right clicking on the UserMicroserviceApplication file and then on run

  5. The port on which the microservice runs is 8080 which can be modified by entering the application-dev.yml file.

  6. The documentation of the code is in the following link

  • Create restaurant http://localhost:9080/swagger-ui/index.html# in your web browser img.png
  • Create plate img.png
  • Update plate img.png
  • Update state img.png
  • List all restaurantes img.png
  • List plates by restaurantId and categoryId img_1.png
  • Make an order by role consumer img_1.png img.png
  • List orders by state img.png
  • Assing order and update state to preparation img.png
  • Notify order ready img.png
  • Update state order to delivered with code client img.png
  • Cancel order if state is earning img_1.png

Tests

Right-click the test folder and choose Run tests with coverage:

  • JUnit5 - Library used for testing Junit5.jpg

  • Mockito - Framework used for code testing Mockito.jpg

  • Jacoco - Test coverage tool jacoco.jpg

Microservice structure

  • Layer adpters img.png

  • Layer configuration img_1.png

  • Layer domain img.png

Author

@LilianaGallego - Liliana Gallego

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages