Skip to content

FindPet is an app that brings people closer to adopting a pet

Notifications You must be signed in to change notification settings

Marcelo8173/FindPet---api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


FindPet

FindPet - Back-end (under construction)

FindPet is an app that brings people closer to adopting a pet

License MIT


Features

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

Getting started

  • 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.

Routes

  • 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:

FindPet

License

This project is licensed under the MIT License - see the LICENSE page for details.

About

FindPet is an app that brings people closer to adopting a pet

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published