Skip to content

Q&A application made with Starlette, Tortoise ORM and PostgreSQL

License

Notifications You must be signed in to change notification settings

sinisaos/starlette-tortoise

Repository files navigation

Example of Starlette Q&A application made with Tortoise ORM and PostgreSQL.

Open terminal and run:

virtualenv -p python3 envname
cd envname
source bin/activate
git clone https://github.com/sinisaos/starlette-tortoise.git
cd starlette-tortoise
pip install -r requirements.txt
sudo -i -u yourpostgresusername psql
CREATE DATABASE questions;
\q
touch .env
## put this two line in .env file
## DB_URI="postgres://username:password@localhost:5432/questions"
## SECRET_KEY="your secret key"
uvicorn app:app --port 8000 --host 0.0.0.0 

For Heroku deployment change DB_URI in .env file and BASE_HOST in settings.py and everything shoud be fine.

About

Q&A application made with Starlette, Tortoise ORM and PostgreSQL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages