- Clone the repository
- Move
env.example
to env
and adjust the variables accordingly
npm install
npm run dev
- Test the API returning a welcome message
HTTP GET https://customaddressbook.herokuapp.com/api/v1/
HTTP POST https://customaddressbook.herokuapp.com/api/v1/user/
{
email: EMAIL,
password: PASSWORD
}
- Login User, returns the token
HTTP POST https://customaddressbook.herokuapp.com/api/v1/auth/
{
email: EMAIL,
password: PASSWORD
}
HTTP POST https://customaddressbook.herokuapp.com/api/v1/contact/
{
userId: USER_ID,
name: CONTACT_NAME,
phone: CONTACT_PHONE,
address: CONTACT_ADDRESS,
email: CONTACT_EMAIL
}