/dsc-account

DSC Account Service

Primary LanguageGo

About The Project

DSC Account Service is a service that aims to manage accounts and SSO (Single Sign-On) in the DSC ecosystem.

Getting Started

Run docker compose.

docker compose up

docker

Service running on port 8080.

Run curl to ping route to check service status.

curl http://localhost:8080/api/ping

Check resources/postman_collection.json for more routes and example.

Flow

Login

Login

Create User

Create User

Get User

Get User

Update User

Get User

Delete User

Get User

Testing User Credential

Here are some default user credentials that can be used for testing purposes.

Admin User

Username: admin
Password: avada_kedavra

Basic User

Username: basic_user
Password: capacious_extremis

Please, check mock/user.go file for more information about default user.

To do

  • Enhance error handling to be more specific (validation error, service error, http error, and etc)
  • Move configuration to env variable to make it more dynamic
  • Implement DDD (Domain Driven Design) on project structure
  • Refactor controller to Single Action Controllers to improve code readability
  • Implement driver pattern for handling multiple database driver (ex: mysql, mongodb)
  • Implement driver pattern for handling multiple route driver (ex: mux, gin, chi, and etc)
  • ....