NOTE: All the cmds must be executed on terminal
- Postgresql Setup:
sudo -u postgres psql
psql -U postgres -h localhost # for windows.
CREATE DATABASE dream;
CREATE USER dream WITH PASSWORD 'dream';
ALTER ROLE dream SET client_encoding TO 'utf8';
ALTER ROLE dream SET default_transaction_isolation TO 'read committed';
ALTER ROLE dream SET timezone TO 'UTC';
GRANT ALL PRIVILEGES ON DATABASE dream TO dream;
- Python setup:
pip install -r requirements.txt
sudo systemctl start postgresql
Cheers Happy Coding