fantasy_football_site
###start mysql
sudo /usr/local/mysql/support-files/mysql.server start
###Run spring boot application
mvn clean install spring-boot:run -Dspring.profiles.active=local -DdatabaseURL=jdbc:mysql://localhost:3306/football -DdatabaseUser= -DdatabasePass= -Dsecurity.jwt.token.secret-key=
{
"name": "Brett",
"userName": "Brett",
"password": "password123",
"email": "[email protected]",
"roles" : [{
"roleName" : "STANDARD_USER",
"description" : "none"
}]
}
{
"usernameOrEmail": "Brett",
"password": "password123"
}
- IMPORTANT the signin api will give you a token. If you are using postman go to the Authorization tab and under TYPE: select Bearer Token and enter the token in the Token: field *