An open API service indexing awesome lists of open source software.

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

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
```