MicroSTAMP Step 1 - a Spring boot microservice for Step 1 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 themicrostamp-step1-microservice/src/main/resources
directory. By default, it assumes port 3306 and "step1" 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:
gradlew build gradlew run
Once the project is running, you can access the following endpoints:
- API Documentation: http://localhost:8091/swagger - Swagger API documentation.
- Guest Visualization: http://localhost:8091/guests - Visualization for guests, with some example projects.
- Login Page: http://localhost:8091/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:
gradlew clean