Skip to content

ctrl-kitty/fastapi-sqlmodel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

Configuring

Just create .env file in your user directory(~).

.env file structure

# PROJECT SETTINGS
DEBUG= #Bool
WORKERS_PER_THREAD= #Integer
PROJECT_NAME= #String
BACKEND_PORT= #Integer/String
BACKEND_HOST= #String(ip validation)
FIRST_SUPERUSER_EMAIL= #String(mail validation)
FIRST_SUPERUSER_PASSWORD= #String
# SECURITY SETTINGS
ACCESS_TOKEN_EXPIRE_MINUTES= #Integer/String
ENCRYPT_KEY= #String
# DATABASE SETTINGS
DATABASE_HOST= #String(ip validation)
DATABASE_PORT= #Integer/String
DATABASE_USER= #String
DATABASE_PASSWORD= #String
DATABASE_NAME= #String

Installation

Project require Python to run and PostgreSQL as database.

git clone https://github.com/ctrl-kitty/fastapi-sqlmodel.git
cd fastapi-sqlmodel
python -m pip install requirements.txt
python init.py

Running

Now you can run app simply type

python main.py

About

what is practice?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages