https://github.com/piccolo-orm/pymdb
A demo Piccolo app - a movie database!
https://github.com/piccolo-orm/pymdb
Last synced: 9 months ago
JSON representation
A demo Piccolo app - a movie database!
- Host: GitHub
- URL: https://github.com/piccolo-orm/pymdb
- Owner: piccolo-orm
- Created: 2021-10-29T10:58:33.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-30T10:28:48.000Z (about 4 years ago)
- Last Synced: 2025-03-28T19:44:45.633Z (9 months ago)
- Language: Python
- Homepage:
- Size: 2.72 MB
- Stars: 15
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PyMDb
Welcome to the Python Movie Database!
Built using Piccolo, Piccolo Admin, and FastAPI.
Created for a presentation given at PyData Global 2021.
## Running it
Create a Postgres database called 'pymdb' (see `piccolo_conf.py` for the details).
```bash
pip install -r requirements.txt
piccolo migrations forwards all
piccolo movies load_data
piccolo user create
```
To run the server:
```bash
python main.py
```
Then load `localhost:8000` in your browser. `localhost:8000/admin` shows the admin interface, and `localhost:8000/docs` shows the Swagger docs.
## Creating something similar
To create your own app like this from scratch, start with the following:
```bash
pip install piccolo['all']
piccolo asgi new
```