Skip to content

Code used to test the utilization of the fastapi as a BFF for Méliuz.

Notifications You must be signed in to change notification settings

gilvan-reis/poc-bff-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

poc-bff-fastapi

Code used to test the utilization of the fastapi as a BFF for Méliuz.

In this POC, I have included:

  • multiple HTTP requests with aggregation.
  • multiple gRPC requests with aggregation.
  • multiple gRPC servers using the libraries gRPC, and homi
  • query, header, and JWT authorization.
  • password hashing.
  • memory cache with cache invalidation.

Requirements

  • Docker (version used 20.10.5).
  • docker-compose (version used 1.27.4).
  • Makefile (version used 4.1).

Quick Start

  1. Use make build to build the image.
  2. Use make up to up the container.
    • Alternatively, use make up-silent to up the container in the background. You can use make logs to view the container logs.
    • You can use make up-grpc to up the gRPC server. You can make requests to it using the host locahost:50051.
    • You can use make up-grpc-homi to up the gRPC server using the homi libary. You can make requests to it using the host locahost:50052.
  3. Access http://127.0.0.1:3021/docs and make requests.
  4. Use make down to stop the container.

About

Code used to test the utilization of the fastapi as a BFF for Méliuz.

Topics

Resources

Stars

Watchers

Forks