Spring Boot 2 + Angular 8 + Material 8

Includes:

Front-end:

  • angular-cli boilerplate files
  • JWT authentication service

What's news

  • HttpClient
  • Login page
  • Roles Permissions
  • Navigation Menu
  • Material Design
  • Crud
  • Data Table

Back-end:

  • Gradle build file
  • Boilerplate files
  • JWT authentication

Build and Run

First of all you need to configure the database. Properties are located in ./backend/src/main/resources/application.yml file.

  1. Go to fronted folder and Run npm install to install front-end dependencies.
  2. Go to fronted folder and Run npm run build:prod rontend to build angular application. (Optional)
  3. Go to backend folder and Run gradle build to build a spring boot application.
  4. Go to backend folder and Run gradle bootRun or java -jar backend/build/libs/app-name-[version].jar to start spring boot application on embedded server.
  5. import data.sql data to the database. backend_service database will auto create if not exists after backend app started.

By default server will be running on port 5000. By default application is using MariaDB database(name: user, user: admin, password: test).

Development

  • npm start --prefix frontend to start front-end server for development.
  • npm run start:prod --prefix frontend to start front-end server with service-workers.
  • gradle bootRun -p backend to start spring boot application on embedded server.

By default server will be running on port 4200

Testing

  • npm test --prefix frontend - to run front-end unit tests.
  • npm run e2e --prefix frontend - to run end to end tests.
  • gradle test -p backend - to run server tests.

Technologies used

Author

License

spring-boot2-angular8-material8-boilerplate is released under the MIT License.