Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

API CRUD with FastAPI and SQLite3

This is a simple CRUD (Create, Read, Update, Delete) API built using FastAPI and SQLite3 for the database. FastAPI is a modern, high-performance web framework for building APIs with Python, and SQLite3 is a lightweight relational database.

Features

  • FastAPI Framework: High-performance, easy to use, and compatible with both Python 3.6+ and type hints.
  • CRUD Operations: Allows you to perform Create, Read, Update, and Delete operations on the data stored in SQLite3.
  • SQLite3: A simple, file-based database, no separate server required.

Requirements

To run this project, you need the following tools installed on your machine:

  • Python 3.6+
  • FastAPI: Can be installed via pip
  • Uvicorn: ASGI server to serve your FastAPI application

You can install the required packages by running:

pip install fastapi uvicorn sqlite3
  1. Clone the repository to your local machine:
git clone git@github.com:MondoukpeStella/FASTAPI-APP.git
cd FASTAPI-APP
  1. Create an virtual environment:
    python -m venv env_name
    source env_name/bin/activate #To activate virtual environment
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Running the Application

To run the FastAPI application, you need to use the Uvicorn server:

uvicorn app:app --reload

Once the server is running, you can access the API documentation via Swagger at: http://127.0.0.1:8000/docs

You can also access the ReDoc documentation at: http://127.0.0.1:8000/redoc

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages