Repositório para conteudo da Live Tech Talk Edge sobre Python
You can set up with docker or install directly on the machine.
All the commands below are for a Windows machine. If using Mac or Linux machine adapt the commands
docker run --name pg-docker -e POSTGRES_PASSWORD=docker -d -p 5432:5432 postgres
docker exec -it pg-docker /bin/bash
psql -h localhost -U postgres
create database api_example;
\q
exit
if PgAdmin needed:
docker run -p 80:80 -e "[email protected]" -e "PGADMIN_DEFAULT_PASSWORD=root" -d dpage/pgadmin4
Install Postgres: Instructions here
on the directory of the code (same folder as this README.md file) do:
python -m venv venv
venv\Scripts\activate.bat
pip install -r requirements.txt
python api.py