REST API developed with Python, FastAPI & PostgreSQL where you can register users, create and vote posts
Model Validation, JWT Authentication, ORM, Unit testing, password hashing, etc
Stack: SQLAlchemy, psycopg2, OAuth2, bcrypt, pydantic, JWT, FastAPI...
$ uvicorn app.main:app --reload
$ pip install -r requirements.txt
$ python3 -m venv <name_of_environment>
$ source <name_of_environment>/bin/activate
$ sudo apt install postgresql postgresql-contrib
$ sudo service postgresql start
$ sudo -u postgres psql
postgres=# CREATE DATABASE <name_of_db>;
To change default pass for "postgres" DB user (NOT UNIX User):
postgres=# \password postgres