Skip to content

zard is a microservice architecture written in go ready to use for saas projects

Notifications You must be signed in to change notification settings

abdelrahman146/zard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Microservices architecture for building SaaS

membership (Accessed by user-token and backoffice-token)

  • organization (sql)
    • user
    • workspace
      • subscription
  • backoffice (sql) needs workspace id to be provided in the request

cashier (Accessed by user-token and backoffice-token)

  • payment_method (nosql)
  • payment_intent (nosql)
  • receipt (nosql)
  • invoice (nosql) needs subscription id to be provided in the request

notifier (Accessed by backoffice-token)

  • email
  • sms

service (Accessed by user-token and backoffice-token and apikey-token)

  • plan (nosql)
  • activity (nosql)
  • archive (nosql)
  • ... service specific resources

/v1/identity/ /v1/membership//subscriptions /v1/cashier//

/v1/service// service will lookup the workspace id from identity and retreive apikey and match it with the provided. if valid it will lookup the subscription id from membership if there is subscription to the service and it is active it will allow the request and cache key: apikey , value: subscription id. the cache path is <service_name>.apikey.

About

zard is a microservice architecture written in go ready to use for saas projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published