Installation guide for the backend of a system that resolve the services of a cinema chain that has different multiplexes in the city. This is the Users Microservice, this microservice solves the authentication and user management requirements in the Cine Pacho system.
To get a local copy up and running follow these steps.
- JDK 17 https://jdk.java.net/java-se-ri/17
- Gradle https://gradle.org/install/
- MySQL https://dev.mysql.com/downloads/installer/
- IntelliJ Community https://www.jetbrains.com/idea/download/
- Postman https://www.postman.com/downloads/
- Clone the repository
- Change directory
cd PowerUp-Reto-microserviceUsers
- Execute the script of "scriptCreateDB" in resource (src/main/resources/scriptCreateDB.sql).
- After the data base are created execute src/main/resources/scriptInitialDBFill.sql content to populate the database
- Update the database connection settings
# src/main/resources/application-dev.yml spring: datasource: url: jdbc:mysql://localhost/cinepacho_dbusers username: root password: <your-password>
- Open Swagger UI and search the /auth/login endpoint and login with ID: 9999999999, password: 1234
- Right-click the class PowerUpApplication and choose Run
- Open http://localhost:8090/swagger-ui/index.html in your web browser
- Right-click the test folder and choose Run tests with coverage