Git Product home page Git Product logo

api-user-management's Introduction

AUM-gRPC

The API-User-Managment

This program is an api that gives access to creating, editing, deleting and fetching user information in grpc services connected to it

Features

  • Create New User (Admin)
  • Edit User Information
  • Edit User Password
  • Fetch User Data
  • ✨ Change User Role (Admin) ✨

This repository is made of 2 separate services

  1. Redis service
  2. FastAPI Serive

How It Works

This service receives requests from the user and sends them to the gDataBase service via gRPC Also, the caching process is also included in this service in such a way that the caching service is used to store user tokens

This service is completely dockerized and you need to set environment in it But before doing this, you need to create a network manually via docker so that in the future you can put all the services you need on an internal network of containers.

Create Network via docker:

docker network create share-net

Then set Environments in docker-compose.yml .

Environments Value Description
OAUTH2_SECRET_KEY test_09d25e094faa6c client secret for create jwt token
OAUTH2_ALGORITHM HS256 cryptographic algorithm used to hash information in the context of OAuth 2.0 (HMAC-SHA256)
GRPC_HOST grpc_service grpc service host name in gDataBase service
GRPC_PORT 3333 grpc service port in gDataBase service
CACHE_URL redis://cache_db:6379 url cache for redis database

Note 1: Redis Host is available in docker-compose.yml (cache_db service) Note 2: GRPC_HOST is available in another project (gDataBase) in docker-compose.yml (grpc_service service)

In Finally

docker compose up

Now You can access to FastApi Docs

http://localhost:8585/docs

Architecture

Architecture

License

MIT

Free Software, Hell Yeah!

api-user-management's People

Contributors

amir-wyvern 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.