View the book with " Book Mode".
Dependencies installation guide to develop the project correctly.
brew install sass/sass/sasssudo npm install -g typescriptsudo npm install ts-watchsass --watch src/main/resources/static/cssnpx ts-watch src/main/resources/static/js/*.script.ts --outDir src/main/resources/static/js/Find out how to start correctly the project.
Start, open the project folder with IntelliJ IDEA. Right click on PorareApplication.java in src/main/java/com/codingfactory/porare and select Run PorareApplication.
The API documentation
Get all users list
URL : http://localhost:8080/api/users
Method : GET
Multipart Form : false
Register a new user
URL : http://localhost:8080/api/register
Method : POST
Multipart Form : true
username:Stringemail:Stringpassword:StringconfirmPassword:String
Return a token if the user is registered correctly. Otherwise, return false (String).
Register a new user
URL : http://localhost:8080/api/getUserInformations
Method : POST
Multipart Form : true
token:String
Return user information if token is valid. Otherwise, return null.
userId:Stringusername:Stringemail:String
Get user coins
URL : http://localhost:8080/api/getUserCoins
Method : POST
Multipart Form : true
token:String
Return user coins if token is valid. Otherwise, return 0.