https://github.com/imerica/dj-models-demo
Demo App for Dj-Models
https://github.com/imerica/dj-models-demo
awesome data-layer database database-management django flask orm
Last synced: 5 months ago
JSON representation
Demo App for Dj-Models
- Host: GitHub
- URL: https://github.com/imerica/dj-models-demo
- Owner: iMerica
- License: mit
- Created: 2018-08-18T22:06:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-16T10:56:25.000Z (over 7 years ago)
- Last Synced: 2025-02-20T02:01:44.685Z (over 1 year ago)
- Topics: awesome, data-layer, database, database-management, django, flask, orm
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DjModels Demo App using Flask
This app demonstrates how you can [DjModels](https://github.com/iMerica/dj-models) together with Flask.
### Setup
- Clone this repo
- Install Docker & Docker Compose
- Start the stack `docker-compose up -d`
- Create migrations, if any: `docker-compose run app python3 manage.py makemigrations`
- Run migrations, if any: `docker-compose run app python3 manage.py migrate`
## Demo
- Visit http://0.0.0.0:5000/ to view a count of objects in the database.
- Send a POST request to add more `curl -X POST http://0.0.0.0:5000/`
## Licence
MIT