Skip to content

xd-mau5/usermicroservice-pragma-powerup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


PRAGMA POWER-UP

In this challenge you are going to design the backend of a system that centralizes the services and orders of a restaurant chain that has different branches in the city.

Built With

  • Java
  • Spring
  • Gradle
  • MySQL

Getting Started

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

Prerequisites

Recommended Tools

Installation

  1. Clone the repository
  2. Change directory
    cd usermicroservice-pragma-powerup
  3. In the application-dev.yml file, there is included a database connection to a remote database, if you want to use it, you can skip to the 7th step, otherwise, you can follow the next steps to use a local database
  4. If you want to use a local database, you can follow the next steps, create a new database in MySQL called powerup
  5. Update the database connection settings
    # src/main/resources/application-dev.yml
    spring:
       datasource:
           url: jdbc:mysql://localhost/powerup
           username: <your-username>
           password: <your-password>
  6. After the tables are created by running the application, execute src/main/resources/data.sql content to populate the database
  7. Open Swagger UI and search the /auth/login endpoint and login with mail: [email protected], password: 1234

Usage

  1. Right-click the class PlazaMicroserviceApplication.java and choose Run
  2. Open http://localhost:8090/swagger-ui/index.html in your web browser

Tests

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages