1.Clone the application
2.Create myreads database
create database myreads
3. Change postgresql username and password as per your installation*
- open
src/main/resources/application.properties
- change
spring.datasource.username
andspring.datasource.password
as per your postgresql installation
4. Run the app using maven
mvn spring-boot:run
The app will start running at http://localhost:8080
Method | Url | Decription | Sample Valid Request Body |
---|---|---|---|
POST | /myreads/auth/signup | Sign up | JSON |
POST | /myreads/auth/signin | Log in | JSON |
Test them using postman or any other rest client.
{
"firstName": "Jordan",
"lastName": "Henderson",
"username": "hendo",
"password": "password",
"email": "[email protected]",
"gender":"male",
"birthDay":"1990-06-11",
"website":null,
"bio":null
}
{
"usernameOrEmail": "hendo",
"password": "password"
}