darklight147 / microservices-POC

Proof of concept of different Design Patterns in Microservices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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": "test@test.com", "password": "123456"} http://localhost:3000/api/auth/login
  • Signup
curl -X POST -d {"username": "test@test.com", "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

About

Proof of concept of different Design Patterns in Microservices


Languages

Language:TypeScript 50.7%Language:JavaScript 27.3%Language:Dockerfile 10.2%Language:C# 6.0%Language:CSS 5.1%Language:Shell 0.7%