Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 687 Bytes

Readme.md

File metadata and controls

40 lines (28 loc) · 687 Bytes

This is Node.js small app for likes

  1. All routes has prefix /api/v1
  2. Download and install packages via npm
  3. Copy .env.example into .env
  4. Create DB
  5. Run npm run migrate
  6. Run app: npm run dev

Login:

  • Type: POST
  • Route: /api/v1/auth/login

Signup:

  • Type: POST
  • Route: /api/v1/auth/signup

Get logged in user info:

  • Type: GET
  • Route: /api/v1/me

Update password:

  • Type: POST
  • Route: api/v1/me/update-password

Like user:

  • Type: POST
  • Route: api/v1/user/:id/like

Unlike user:

  • Type: POST
  • Route: api/v1/user/:id/unlike

Most liked user:

  • Type: GET
  • Route: api/v1/user/most-liked