Skip to content

gerry-sabar/fastapi-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI-Todo

github code for article https://gerrysabar.medium.com/fastapi-simple-crud-with-mysql-sqlalchemy-e60dd04a5c7e

Installation

Prerequisites

Ensure you have the following installed:

Steps

  1. Clone the repository:

    git clone https://github.com/gerry-sabar/fastapi-todo
    
  2. Inside project root directory create virtual environment:

    python3 -m venv venv
    
  3. Activate the virtual enviroment:

    source venv/bin/activate
    
  4. Install requirements:

    pip3 install -r requirements.txt
    
  5. Adjust database connection in database.py according to your mysql configuration

  6. Run locally:

    fastapi dev main.py
    
  7. You can access API documentation from here:

    http://localhost:8000/docs

Releases

No releases published

Packages

 
 
 

Contributors

Languages