Giter Site home page Giter Site logo

gavrilovicieduard / fastapi-microservices Goto Github PK

View Code? Open in Web Editor NEW
23.0 1.0 8.0 55 KB

Microservices Architecture with FastAPI, Docker and Nginx

Python 85.39% Dockerfile 12.19% Shell 2.41%
fastapi docker docker-compose dockerfile microservice microservices microservices-architecture microservices-application microservices-demo microservice-example

fastapi-microservices's Introduction

Microservices with FastAPI, Tortoise ORM, Docker and Nginx

Architecture Schema

schema

Run and test

To start the application just run

docker-compose up -d

To test the endpoints you can access swagger at

http://localhost:8080/pokemon/docs/
http://localhost:8080/teams/docs/

fastapi-microservices's People

Contributors

gavrilovicieduard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fastapi-microservices's Issues

Debugging problem

Hi, I really appreciate your work,

I 've an issue when I try do modify and debug the microservice: I'm tring to use vs code with dev container extension but when I open code inside container I get this error:Workspace does not exist. In the container probably it doesn'exist cause there are 4 separate images.

If I launch vs code inside one service, like pokemon-service, the error comes from models.sku import PokemonModel cause it's in another volume

I'm new in docker so can you tell me how you debug this microservice?

thank you in advice,
M

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.