Skip to content

xd-mau5/plazamicroservice-pragma-powerup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 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
  • MongoDB

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 plazamicroservice-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. Set the user microservice API url in the application-dev.yml file
    # src/main/resources/application-dev.yml
    auth:
       api:
          url: <user-microservice-api-url>
  8. Set the MongoDB connection settings in the application-dev.yml file
    # src/main/resources/application-dev.yml
    spring:
         data:
           mongodb:
             auto-index-creation: true
             database: <your-database-name>
             authentication-database: <your-authentication-database>
             host: <your-host>
             port: <your-port>
             username: <your-username>
             password: <your-password>
  9. 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:8091/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