Giter Club home page Giter Club logo

user-management-system's Introduction

User Management System API

This is the documentation for the User Management System API. You can use this API to perform various actions such as login, logout, refresh token, get a list of users, get a specific user by ID, update a user, and delete a user.

The system follows the clean architecture principles, with a separation of concerns between the different layers. https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html

Steps

  1. Clone the repository: git clone [email protected]:irvankadhafi/user-management-system.git
  2. Run docker-compose up
  3. Migrate database: cd user-service && go run . migrate
  4. Seed user data cd user-service && go run . seeder
  5. Seed rbac cd user-service && go run . go run . migrate-rbac-permission
  6. Run server make run

TODO

  • Implement all unit tests
  • Decomposing rbac mechanism to new service named auth-service
  • Using MongoDB as database
  • Create kubernetes deployment config

API Documentation

https://www.postman.com/irvankadhafi/workspace/irvankadhafi-deall/collection/10454328-d1ea77ec-c419-41c4-b60f-1cc92955a17a?ctx=documentation

User Login Credential (After seed)

Technology

The following technologies were used to build this system:

  • Golang for the backend server
  • PostgreSQL for the database
  • Redis for cache

Features

  • Login user with email and password
  • Logout user
  • Refresh token
  • Admin and member roles, with different levels of access to CRUD functionality
  • Redis cache to improve performance
  • Logging for easier debugging

user-management-system's People

Contributors

irvankadhafi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.