smetam / fastapi-blog

FastApi App for Web Blogging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastapi-blog

FastApi App for Web Blogging

Project uses Poetry for dependency management and packaging. To install dependencies run:

    poetry install

To start an app run:

    uvicorn fastapi_blog.app:app --reload --port 8080

Using Docker to run an App

To run an app, you need to build Docker first by typing simple command:

docker build . -t fastapi-blog 

Then you can run an app in the container:

docker run -it --rm -p 8080:8080 fastapi-blog:latest

Now you can access the app at http://localhost:8080/

Development

Project uses pre-commit hooks for development, to set them up run:

    pre-commit install

to install git hooks in your .git/ directory.

About

FastApi App for Web Blogging


Languages

Language:HTML 50.1%Language:Python 42.5%Language:CSS 5.2%Language:Mako 1.3%Language:Dockerfile 0.8%Language:Shell 0.1%