Skip to content

Proof of concept of different Design Patterns in Microservices

Notifications You must be signed in to change notification settings

darklight147/microservices-POC

Repository files navigation

WORK IN PROGRESS

AUTH service CI for Auth Service [JWT]

  • Get CurrentUser
curl -X GET http://localhost:3000/api/auth/me
  • Login
curl -X POST -d {"username": "[email protected]", "password": "123456"} http://localhost:3000/api/auth/login
  • Signup
curl -X POST -d {"username": "[email protected]", "password": "123456"} http://localhost:3000/api/auth/signup
  • Logout
curl -X GET http://localhost:3000/api/auth/logout

Expiration Service CI for Expiration Service

this service handles the time tracking and expiration of certain entities and objects, You can send an event to this service to expire an object after a certain amount of time.

Eg:

  • expire a user's account after 24 hours
  • expire a biding listing or an order after 30 minutes
  • unban a user after a certain amount of time

Any event that you want to receive in X amount of time really

dependencies

  • Redis
  • bull.js
  • RabbitMQ

Building all services

cd build && ./build.sh