MicroSTAMP Step 2 - a Spring boot microservice for Step 2 of STPA.
For building and running the application you need:
- Clone Project: Clone this repository to your local machine.
- Configure
application.properties
: Set up your SQL configurations in theapplication.properties
file located in thesrc/main/resources
directory. By default, it assumes port 3306 and "step2" as the database name. Ensure to provide the correct URL, port, username, and password for your SQL database. - Create SQL Database: Create the required SQL database as configured in the
application.properties
file. - Run the Project:
- Open a terminal.
- Navigate to the root directory of the project.
- Execute the following commands:
mvnw compile mvnw spring-boot:run
Once the project is running, you can access the following endpoints:
- API Documentation: http://localhost:8090/swagger - Swagger API documentation.
- Guest Visualization: http://localhost:8090/guests - Visualization for guests, with some example projects.
- Login Page: http://localhost:8090/login - Any other route should redirect to the login page.
- Credentials:
- Admin:
- Username: admin
- Password: admin123
- Guest:
- Username: guest
- Password: guest123
- Admin:
- Credentials:
To clean the build files, execute the following command:
mvnw clean