https://github.com/dgonzo27/flask-demo
Dockerized Flask API with PostgreSQL
https://github.com/dgonzo27/flask-demo
docker docker-compose flask flask-restx flask-sqlalchemy postgresql python
Last synced: 3 months ago
JSON representation
Dockerized Flask API with PostgreSQL
- Host: GitHub
- URL: https://github.com/dgonzo27/flask-demo
- Owner: dgonzo27
- Created: 2022-01-01T19:52:11.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-08T16:23:13.000Z (over 4 years ago)
- Last Synced: 2025-06-09T12:50:08.154Z (about 1 year ago)
- Topics: docker, docker-compose, flask, flask-restx, flask-sqlalchemy, postgresql, python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flask-demo
watch the demo [youtube](https://youtu.be/yS3bMdWAIC4)
## getting started
1. build the docker containers:
```sh
docker compose build
```
2. run the containers in detached mode:
```sh
docker compose up -d
```
3. recreate the database:
```sh
docker compose exec api python manage.py recreate_db
```
4. visit `http://localhost:5000/api/v1/docs` to create, read, update and delete movies
5. stop the containers:
```sh
docker compose down
```