Skip to content

vadiks006/Python-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚙️ Настройка окружения

1. Клонируем проект

git clone https://github.com/vadiks006/Python-API
cd Python-API

2. Создаём виртуальное окружение

python -m venv venv
source venv/bin/activate   # Linux / Mac
venv\Scripts\activate     # Windows

3. Устанавливаем зависимости

pip install -r requirements.txt

4. Настраиваем переменные окружения

Создайте файл .env в корне проекта:

DATABASE_URL="postgresql+psycopg://user:password@localhost:5432/boardgames_db"
SECRET_KEY="SECRET_KEY" (Ваш секретный ключ)

▶️ Запуск проекта

uvicorn app.main:app --reload

API будет доступен по адресу:

http://localhost:8000

Swagger документация:

http://127.0.0.1:8000/docs#/

---

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages