Coder Social home page Coder Social logo

fast-api-sandbox's Introduction

Overview

Sandbox FastAPI server, which runs in a VS Code dev container. Created for educational purposes only.

This is just meant to illustrate a potential method of file organization or project structure for a small team looking to avoid merge conflicts.

What it's missing (as an educational example) is a provider base class or protocol that abstracts the same method call to point at different services.

For example:

  • ProviderTelecom -> ProviderSprint -> callHome
  • ProviderTelecom -> ProviderAtt -> callHome

Setup

From the root of the project directory:

  • Populate the env.sample file with your desired bcrypt hashing algorithm and secret.
  • cp env.sample .env

Alembic

Upgrade DB tables:

   alembic revision --autogenerate -m "Initial migration"

fast-api-sandbox's People

Contributors

raymondshum avatar dependabot[bot] avatar

Watchers

 avatar

fast-api-sandbox's Issues

Implement auth for users

Checklist:

  • Hash password for user model
  • Protect user routes (can only perform CRUD operations on own USER objects)
  • Implement some sort of auth mechanism

Fix routes

Forgot to update after moving routes:

For example, prefix is /user and route is also /user - so it would end up being /user/user

Determine auth mechanism

Blocking: #3

Need to determine how auth works for the user route. IE, are we passing a JWT back to them? Then need to investigate implementation.

Do we need to implement some sort of middleware or callback? Do we need to implement some sort of auth filter analogue?

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.