1.Clone the application
2.Create myreads database
create database myreads3. Change postgresql username and password as per your installation*
- open
src/main/resources/application.properties - change
spring.datasource.usernameandspring.datasource.passwordas per your postgresql installation
4. Run the app using maven
mvn spring-boot:runThe 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": "hendo14@gmail.com",
"gender":"male",
"birthDay":"1990-06-11",
"website":null,
"bio":null
}{
"usernameOrEmail": "hendo",
"password": "password"
}