[go: up one dir, main page]

Skip to content

nanwp/jajan-yuk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backen for app Jajan yuk

Monorepo for micorserivce jajan-yuk app.

Software Architecture

splash schreen

Services

  • Auth services
  • Microservices for authentification and authorization
    Include endpoint :
    • Login
    • Login can generate JWT access token and refresh token, and stored it to redis as a session login
    • Current-User
    • Current user, for authorization. get info curret user login
    • Refresh-Token
    • Refresh token use for generate new token if access token is expired
    • Logout
    • Logout use for remove access token from redis
  • User servuces
  • Microservices for manage user
    Include endpoint
    • Registration
    • For registration of new user
    • Update Profile
    • For update user profile
  • Email Services
  • Microservices for send email
    This service is subscriber from pubsub topic, When there is a new message in the topic, this service will send an email to the destination
    flow : Email service waiting for message -> another service sending a message to email-topic -> Email services can process this message
    this is a implement of SSE (Server Send Event)

Tech Stack

  • Go
  • Postgres
  • Redis
  • Docker
  • Pubsub

Example Usage

  • Login
  • curl --location 'https://auth.jajan-yuk.pegelinux.my.id/api/v1/login' \
    --header 'Content-Type: application/json' \
    --data '{
        "username":"nanda",
        "password":"password"
    }'
    

    Releases

    No releases published

    Packages

    No packages published