Giter Club home page Giter Club logo

fastapi_simple_jinja's Introduction

fastapi_simple_jinja

Basically I took this code

URL for this repo

https://github.com/pleabargain/fastapi_simple_jinja

URLs in the app

documentation

issue

requires

  • fastapi == 0.85.0
  • uvicorn == 0.18.3
  • python-multipart == 0.0.5

TODO

  • load a JSON file and render ALL conents to HTML
    • if too many rows then paginate
  • Create a template for a
    • simple table
      • if too many rows then paginate
    • simple search
      • global search (walk the whole db)
      • search by model names
    • add data to db (session)
    • simple form to take in user email and password
      • should check against existing user db! :)
    • simple form to register a user (good exercise)

errors

Trying to get fastapi to restart, I got an error

ERROR:    [Errno 10048] error while attempting to bind on address ('127.0.0.1', 8000): only one usage of each socket address (protocol/network address/port) is normally permitted

working fix for me

(windows)
Run resmon for resource monitor dialog

On Network tab search for Listening ports section

Look for the one taking 8000 port (my case: python.exe)

taskkill.exe /PID 17280 /F

here's how I found that FASTAPI apparently was stil running netstat -aon | findstr :8000

how to kill PID on windows. taskkill.exe /PID {PIDINQUESTION} /F

fastapi_simple_jinja's People

Contributors

pleabargain avatar

Watchers

 avatar  avatar  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.