Sample of web architecture with Docker.
- Spring Boot
- Hibernate + MySQL
- Angular 9
- NGRX
- Docker
- Log4j2
- Clone the project.
- MySQL - Choose one.
- Import sql file from /mysql/sql.
- Use dockerfile from /mysql to deploy a container with the kraken database.
- Auth & API.
- Open both Java projects as Maven project with your favorite IDE.
- Add your database configuration to src/main/resources/application.properties
- A servlet is provided for db testing purposes at /src/main/java/com.mbarcina.testdb.testDbServlet.java
- Start both applications at /auth/src/main/java/io/mbarcina/kraken/auth/KrakenAuthApplication.java and /api/src/main/java/io.mbarcina.springmarket.SpringmarketApplication
- Client.
- Open /angular-client from a terminal.
- Type "npm i" command to install project dependencies.
- Run "npm run start" to deploy client.
- Go to http://localhost:4200 to see Kraken in your browser.
- Both Auth & API projects use Log4j2 logging utilty.
- Logs are saved at /src/main/resources/logs.
- Log files are saved as 1 file for each day and zipped once the day they are saving has passed.