GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - profcomff/fastapi-template: Шаблон для разработки backend-сервиса на fastapi

BranchesTags
Open more actions menu

Latest commit

 

History

50 Commits
50 Commits

Folders and files

NameName
Last commit message
Last commit date
{{cookiecutter.repo_name}}
{{cookiecutter.repo_name}}
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
cookiecutter.json
cookiecutter.json
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Шаблон для fastapi проекта

Использование

  1. Установите cookiecutter
foo@bar:~$ pip install cookiecutter
  1. Перейдите в ту директорию, где у вас будет хранится код для проекта. Это делается следующими комадами. (Это не последовательность команд, а список нужных Гуглите их, если у вас будет что-то не получаться.)
foo@bar:~$ cd
foo@bar:~$ pwd
foo@bar:~$ ls
  1. Выполните раскатку шаблона в текущую директорию командой

    foo@bar:~$ cookiecutter https://github.com/profcomff/fastapi-template.git

    После команды вас спросят, хотите ли вы загрузить шаблон, согласитесь.

    Вам зададут несколько вопросов:

    1. repo_name - имя будущего репозитория
    2. module_name - имя модуля, который будет запускаться командой: python3 -m module_name. На одном уровне с ним будут лежать Dockerfile, .gitignore, .env, Makefile, docker-compose, pyproject.toml, flake8.conf, README.md, requirements.txt, alembic.ini, gunicorn.conf, миграции. А внутри будет лежать исполняемый код.
    3. description - Краткое описание проекта для README.md
  2. У вас создастся структура проекта, корнем которой будет папка repo_name. Вы должны создать новый пустой репозиторий на GitHub и импортировать туда все из этой папки.

Стек технологий в шаблоне

  1. fastapi
  2. sqlalchemy
  3. pydantic
  4. alembic

Вы можете добавлять новые технологии в файле requirements.txt.

Предложения по шаблону

Писать мне @Alevardo (tg) или в нашем чатике

About

Шаблон для разработки backend-сервиса на fastapi

Topics

cookiecutterfastapipydanticpython3sqlalchemysqlalchemy-orm

Resources

Readme
BSD-3-Clause license
Activity
Custom properties

Stars

19 stars

Watchers

0 watching

Forks

1 fork
Report repository

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.