Coder Social home page Coder Social logo

markqiu / fastapi-mongodb-realworld-example-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nsidnev/fastapi-realworld-example-app

430.0 430.0 94.0 135 KB

Backend logic implementation for https://github.com/gothinkster/realworld with awesome FastAPI

Home Page: https://fastapi-realworld-example-app.herokuapp.com/docs

License: MIT License

Dockerfile 0.65% Python 98.04% Shell 1.07% Procfile 0.25%

fastapi-mongodb-realworld-example-app's People

Contributors

arkrwn avatar markqiu avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fastapi-mongodb-realworld-example-app's Issues

How can I use the authentication token?

Hello, I tried getting started with mongodb and fastapi. For this reason I found your repository.

Somehow, when I try to use the token I got from Login or Register in combination with /api/user I recieve an 422 Error: Unprocessable Entity. So how do I use the Token correctly?

Reguards

MongoDb Connections with AWS Lambda using this fastapi example

With reference to your example, I build a project. I have created FastAPi project using AWS lambda /api gateway connected to Mongodb database. After deploying in AWS lambda, instead of reuse of connection , it is making new connections for ever new query as AWS Lamda is cold-state.

I want to establish a connection during startup and reuse it. I am forced to make new connections for every time Lambda is invoked. How to pool/cache these connections for more efficient queries?

Cannot make it work with docker-compose

First of all thank you for this repository. I'm learning FastAPI and this is great to start an application based on Mongo and FastAPI.

I am trying to deploy app with docker-compose up --build command but when finishing poetry install there is an error and cannot launch containers.

imagen

What does RWModel stands for?

I don't know what is the use of this code? Can you please tell me why you extend RWmodel on Pydanticmode instead of BaseModel?

class RWModel(BaseModel):
    class Config(BaseConfig):
        allow_population_by_alias = True
        json_encoders = {
            datetime: lambda dt: dt.replace(tzinfo=timezone.utc)
            .isoformat()
            .replace("+00:00", "Z")
        }

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.