Backend for the contact CRUD app.
ROUTES | HTTP | DESCRIPTION |
---|---|---|
/api/contacts | GET | Get all contact |
/api/contacts | POST | Add a contact |
/api/contacts/:contact_id | GET | get a sigle contact |
/api/contacts/:contact_id | PUT | Update a contact |
/api/contacts/:contact_id | DELETE | Delete a contact |
git clone https://github.com/Ezequiel-CE/contact-CRUD-back.git
cd contact-CRUD-back
npm install
create mysql database
add .env file with the database settings
npm start