Skip to content

adisnuhic/likes

Repository files navigation

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

About

small nodejs app on n-tier architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published