Contacts-API

About 🕹️

This is an API made for the Contacts web application, an online application to save and organize all of your favorit contacts.

(All registered contacts are fictitious)

You can check the front-end application here: https://github.com/victordurco/contacts

And the working application here: https://pagaleve-contacts-api.herokuapp.com


How to run in your machine 🖥️

git clone https://github.com/victordurco/contacts-api
cd contacts-api
npm i

Create a .env.dev file and fill it using your environment variables following the example at .env.example file. (You can also create a .env.test file following the same .env.example, if you want to run the tests).

In your terminal

sudo su postgres
psql
CREATE DATABASE contacts_api
\c contacts_api

Copy everything in the DATABASE.sql file and paste on the terminal
You can not exit the postgres admin, and run

npm run dev



🧰 Tech Stack

typescript postgres nodejs expressjs