cd backend
docker-compose up -d
- Install Postgresql Database(for mac)
brew install postgresql@14
- start database server
brew services start postgresql
- access psql shell
psql postgres
- show databses
postgres=# \l
- create databse (ex.testdb)
CREATE DATABASE testdb;
- show databses
postgres=# \l
- replace databse uri
postgresql://<username>@localhost:5432/<testdb>
on config.yaml - Install poetry : https://python-poetry.org/docs/
- poetry shell
- poetry install
- python src/main.py
stop postgresql server brew services stop postgresql
change database postgres=# \c testdb
show tables postgres=# \dt
show rows from table SELECT * FROM userfeedbacks;
localhost:8000/docs
localhost:8000/redoc