Skip to content

Latest commit

 

History

History
94 lines (63 loc) · 3.44 KB

README.md

File metadata and controls

94 lines (63 loc) · 3.44 KB

NG-SPRING-AUTH

This repository is a simple demo using

  • Spring Boot
  • Spring Data JPA
  • Angularjs 1.x
  • Jwt (Json Web Token)
  • Satellizer
  • Google captcha
  • Mysql
  • Flywaydb

Fork from

Requirements

  • Maven 3++
  • Java 1.8++
  • Eclipse Neon 4.6.3++ installed STS (Spring Tool Suite)

Set up

1. Config lombok
  • Right Click lombok-1.16.16-sources.jar from Maven Dependencies > Run As > Java Application.
  • Click button Install/Update from lombok console, then refresh project.
2. Open file application-dev.properties and change
spring.datasource.username=Your username db
spring.datasource.password=Your password db
spring.mail.username=your google mail
spring.mail.password=your password google mail

If you want to use recaptcha for your site, then follow step 3, step 4

3. Regist recaptcha from here: https://www.google.com/recaptcha/intro/
4. Open file application-dev.properties and change
google.recaptcha.site-key=Your site key (from step 3)
google.recaptcha.secret-key=Your secret key (from step 3)

Build

mvn clean install

Run

mvn spring-boot:run
  • Go to http://localhost:8080
  • Login with admin role: username: admin, password: 123456
  • Login with user role: username: user, password: 123456

Screeenshot

  • Home page:

    alt text

  • Post detail page:

    alt text

  • Login page:

    alt text

  • Signup page:

    alt text

  • Confirm reset password page:

    alt text

  • Manage api page:

    alt text

  • Manage post page:

    alt text

  • Manage tag page:

    alt text

  • Manage user page:

    alt text

  • Add or edit post page:

    alt text

  • Add or edit user page:

    alt text

  • Manage profile user page:

    alt text