The original spring-boot-slingshot project that is extended to allow sign up and login using Auth2.
The details of Auth2 with Spring can be found at this link
- Embedded tomcat server
- Spring Data JPA and Spring Security for Authentication
- Spring Data JPA configuration for database
- Jest for ElasticSearch
- Websocket + sockjs + stompjs
- Bootstrap + thymeleaf
- Language (cn + en)
- Signup and Login using Auth2 (Login using Facebook account or Github account)
- Developer can retrieves facebook information about the login user using class such as FacebookOAuth2ClientAuthenticationProcessingAndSavingFilter
To use this project create a database named spring_boot_slingshot in your mysql database (make sure it is running at localhost:3306)
CREATE DATABASE spring_boot_slingshot CHARACTER SET utf8 COLLATE utf8_unicode_ci;
Note that the default username and password for the mysql is configured to
- username: root
- password: chen0469
If your mysql or mariadb does not use these configuration, please change the settings in src/resources/config/application-default.properties
This is just a template project that provides slingshot. Just use it as the starting point for your spring boot project development.
Note that the application will generate two accounts in the database on startup if they don't exist:
ADMIN:
- username: admin
- password: admin
DEMO:
- username: demo
- password: demo
To start the application, run the make.ps1 in powershell to build the jar bin/spring-boot-slingshot.jar and run the following command:
java -jar bin/spring-boot-slingshot.jar
Now navigate to localhost:8080 in your browser.
The main class is SpringSlingshotApplication.