jod35/fastapi-beyond-CRUD
关于
我的 FastAPI Beyond CRUD 课程的源代码。这是一门免费课程,我打算经常更新。
学习与教育实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- +3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文FastAPI Beyond CRUD
This is the source code for the FastAPI Beyond CRUD course. The course focuses on FastAPI development concepts that go beyond the basic CRUD operations.
For more details, visit the project's website.
Table of Contents
Getting Started
Follow the instructions below to set up and run your FastAPI project.
Prerequisites
Ensure you have the following installed:
- Python >= 3.10
- PostgreSQL
- Redis
Project Setup
Clone the project repository:
git clone https://github.com/jod35/fastapi-beyond-CRUD.gitNavigate to the project directory:
cd fastapi-beyond-CRUD/Create and activate a virtual environment:
python3 -m venv env source env/bin/activateInstall the required dependencies:
pip install -r requirements.txtSet up environment variables by copying the example configuration:
cp .env.example .envRun database migrations to initialize the database schema:
alembic upgrade headOpen a new terminal and ensure your virtual environment is active. Start the Celery worker (Linux/Unix shell):
sh runworker.sh
Running the Application
Start the application:
fastapi dev src/
Alternatively, you can run the application using Docker:
docker compose up -d
Running Tests
Run the tests using this command
pytest
Contributing
I welcome contributions to improve the documentation! You can contribute here.
探索相关项目
加载中…