An API that interacts with a PostgreSQL Database to store information from a contact manager application.
Go to the desired folder and run
$ git clone https://github.com/whoiscaio/mycontacts-api
$ cd mycontacts-apiThen, install the packages and run the development server with: (NPM)
$ npm install
$ npm run devor: (YARN)
$ yarn
$ yarn devPs: Make sure to have a running postgres container and a database with the scheme on src/database/scheme.sql file
You can:
$ docker pull postgres
$ docker run --name pg -e POSTGRES_USER=root -e POSTGRES_PASSWORD=root -p 5432:5432 -d postgres
$ docker exec -it pg bash
$ psql -U rootNow execute the queries and you're ready to go.