SmartMaatt / fast-api-blog

Contains a sample project for a blog and user management system using the FastAPI framework. The project features user authentication with token-based authorization and utilizes an SQLite database for data persistence.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FastAPI blog test

OverviewFeaturesInstallationUsageLicense

Overview

This repository contains a sample project for a blog and user management system using the FastAPI framework. The project features user authentication with token-based authorization and utilizes an SQLite database for data persistence.

Features

  • Blog Management: Create and read blog posts.
  • Token-based Authentication: Secure access control using JWT tokens.
  • SQLite Database: Utilized for efficient storage and retrieval of blog posts.

Installation

To set up the project environment, follow these instructions:

  1. Clone the repository
git clone https://github.com/SmartMaatt/fast-api-blog.git
  1. Navigate to the project directory.

  2. Create python virtual environment.

  3. Install dependencies

pip install -r requirements.txt

Usage

To run the FastAPI server, execute:

uvicorn main:app --reload

The API will be available at http://127.0.0.1:8000.

Documentation

For more detailed API documentation, visit http://127.0.0.1:8000/docs after starting the server.

License

This project is licensed under the MIT License - see the LICENSE file for details.


© 2023 Mateusz Płonka (SmartMatt). All rights reserved.

PortfolioGitHubLinkedInYouTubeTikTok

About

Contains a sample project for a blog and user management system using the FastAPI framework. The project features user authentication with token-based authorization and utilizes an SQLite database for data persistence.

License:MIT License


Languages

Language:Python 100.0%