-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the wagio wiki!
Human Resource Management System
Requirements:
- open-jdk 8
- eclipse Neon: Eclipse IDE for Java Developers with Maven(http://www.eclipse.org/downloads/eclipse-packages/)
- install STS in eclipse Marketplace (Help -> Marketplace)
HowTo Create Database:
cat database/create_database.sql | mysql -u root -p
HowTo Run:
right-click on MyApplication.java -> Run As -> Spring Boot App
Login:
username: some email from the database
password: all passwords are 'password', BCrypt encrupted in the database
REST API:
- http://localhost:8080/login
- http://localhost:8080/login?logout
- http://localhost:8080/user/members (only users with Role ADMINISTRATOR can access it)
- http://localhost:8080/user/member/2 (only users with Role ADMINISTRATOR and USER can access it)
Links:
Spring Boot with MySQL: http://www.concretepage.com/spring-boot/spring-boot-rest-jpa-hibernate-mysql-example
HasRole example: http://www.baeldung.com/spring-security-expressions-basic
Get User in spring security: http://www.baeldung.com/get-user-in-spring-security
Registration with Spring Security plus complete guide about Captcha, etc: http://www.baeldung.com/spring-security-registration-password-encoding-bcrypt (http://www.programming-free.com/2015/09/spring-security-jdbc-authentication.html, http://www.programming-free.com/2015/09/spring-security-password-encryption.html)