FindPet is an app that brings people closer to adopting a pet
This app features all the latest tools and practices in web back-end development
- Node Js — A JavaScript library for building API Rest
- Docker - Postgres
-
Clone this repository
-
Use yarn or npm init to install dependencies
-
This project use container's docker to database. If you haven't installed it, just follow the tutorial at
https://www.docker.com/
-
Use
docker run --name findpet_postgres -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
to up the contairner with postgress. -
If you already have other docker containers, you will need to redirect the ports.
-
POST - localhost:3333/sessions
- to start a session. You need an email and password already registered
{
"email": ,
"password":
}
-
POST - localhost:3333/users/create
- to create a new user
{
"name": ,
"email": ,
"password":
}
-
PUT - localhost:3333/profile/update
- to update profile. Password is optional
{
"name": ,
"email": ,
"password"?:
}
-
DELETE - localhost:3333/profile/delete
- to delete a profile -
PATCH - localhost:3333/users/avatar
- to update avatar
Multipart
avatar:
This project is licensed under the MIT License - see the LICENSE page for details.