Giter VIP home page Giter VIP logo

spring-boot-auth2-slingshot's Introduction

spring-boot-auth2-slingshot

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

Feature

  • 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

Configuration

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

Usage

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.

spring-boot-auth2-slingshot's People

Contributors

chen0040 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.