A state-of-the-art stack (or is it?).
Role | Technology |
---|---|
Front-end | Angular (npm) |
Back-end | Spring Boot |
Web server | nginx |
Database | MariaDB |
Deployment | Docker, Docker Compose |
make
make up
Front-end can be access through http://localhost/, and backend through http://localhost/api/
docker logs -f tomcat
docker logs -f mariadb
docker logs -f nginx
make down
ng new front
Routing enabled, stylesheet format: SCSS
Go to https://start.spring.io/
- Project = Maven Project
- Language = Java
- Spring Boot = Latest non-snapshot/RC
- Group = country.you
- Artifact = backend
- Name = backend
- Description = Back-end
- Package name = country.you.backend
- Packaging = Jar
- Java = 11
- Dependencies =
- Spring Boot Dev Tools
- Spring Web
- Rest Repositories
- JDBC API
- MariaDB Driver
Then unzip the folder in the root and rename it to "back".
Edit back/src/main/resources/application.properties
and put
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
spring.datasource.url=jdbc:mariadb://mariadb:3306/setme
spring.datasource.username=root
spring.datasource.password=setme
server.servlet.context-path=/api
Inspired by https://github.com/ninrod/angular-springboot-nginx