项目作者: kamiryu-sama

项目描述 :
Contacts Management API developed with Node.js & TypeScript
高级语言: TypeScript
项目地址: git://github.com/kamiryu-sama/contacts-api.git
创建时间: 2020-06-17T22:35:09Z
项目社区:https://github.com/kamiryu-sama/contacts-api

开源协议:

下载


contacts-api

Contacts Management API developed with Node.js & TypeScript

FrontEnd Application

https://github.com/kamiryu-sama/contacts-app

RUN IN THE SAME SERVER BOTH PROGRAMS AS FRONTEND REFERENCES http://localhost:3100/api ROUTES.

Installation

Clone this repository:

  1. git clone https://github.com/kamiryu-sama/contacts-api

Install Node Packages (Project Dependencies) Node v12.13.0 Recommended

  1. cd contacts-api
  2. npm install

Database

MySql was used, the database and tables creation are located in /database directory. You should have a MySql Server.
Remember to create a .env file for app secrets.

Run

Development:

  1. npm run dev

Routes

POST http://localhost:3100/api/auth/register

POST http://localhost:3100/api/auth/login

GET http://localhost:3100/api/contacts/:userId

POST http://localhost:3100/api/contacts/:userId

UPDATE http://localhost:3100/api/contacts/:contactId

DELETE http://localhost:3100/api/contacts/:contactId