-
The Project when you can create, edit and save your contacts.
-
The Project is base on Node.js, Express and MongoDB.
-
To run the project locally, follow these steps:
- Clone the repository;
- Install the dependencies:
npm install - Run in dev:
npm run start:dev - Run the following command:
npm start;
| HTTP Method | Endpoint | Description |
|---|---|---|
| POST | /auth/registration |
User registration |
| POST | /auth/login |
User login |
| GET | /auth/verify/:verificationCode |
User varification code |
| POST | /auth/verify |
User resend verify email |
| HTTP Method | Endpoint | Description |
|---|---|---|
| GET | /user/current |
Get current user |
| POST | /user/logout |
User Log out |
| POST | /user/subscription |
Change user subscription |
| PATCH | /user/avatars |
Add user avatar |
| HTTP Method | Endpoint | Description |
|---|---|---|
| GET | /contacts/ |
Get all user`s contacts |
| GET | /contacts/:contactId |
Get contact by id |
| POST | /contacts/ |
Add contact |
| DELETE | /contacts/:contactId |
Delete contact |
| PUT | /contacts/:contactId |
Update contact |
| PATCH | /contacts/:contactId/favorite |
Update contact`s status |