Python, Flask, PostgreSQL, Google Cloud
Note: Python 3.7.3
required
- Install PyCharm (professional version is free for students)
- Clone repository
- Install docker and docker compose
- Confirm unit tests run successfully with
docker-compose -f docker-compose.test.yml -p MyAppRest-tests up --exit-code-from tests --force-recreate --build
- Set up the virtual environment
pip install -r requirements.txt
in virtualenv- Run
Run bg services
. To ensure BG services started successfully go to services, and check the logs for each container. Usually take 60sec to fully initialize. - Run
Create db
. Double check that the schema was created (postgresql://serviceclient:password@localhost:5433/myappdb
) - Run
Run MyApp dev
. Ensure that services started up correctly.
Can reset the postgres database by deleting the .postgres folder (rm -rf .postgres
). Make sure to you stop the postgres container before doing this and you restart it after.
REST API for your app. Currently at http://localhost:5000