https://github.com/groda/books_demo
Books demo
https://github.com/groda/books_demo
Last synced: 2 months ago
JSON representation
Books demo
- Host: GitHub
- URL: https://github.com/groda/books_demo
- Owner: groda
- Created: 2019-08-16T06:02:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-08T20:12:00.000Z (almost 7 years ago)
- Last Synced: 2025-01-01T03:14:59.971Z (over 1 year ago)
- Language: Python
- Size: 110 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## API
- API root: https://damp-earth-36259.herokuapp.com/api/
- get all books https://damp-earth-36259.herokuapp.com/api/books/
- vocabulary for book with ID 1: https://damp-earth-36259.herokuapp.com/api/words/?book=1
- delete book with ID 3 `curl -X DELETE https://damp-earth-36259.herokuapp.com/api/books/3/`
##
## Commit changes to Heroku
git add .
git commit -m 'new'
git push heroku master
## Migrate local
python manage.py makemigrations
python manage.py migrate
## Migrate on Heroku
heroku run python manage.py makemigrations
heroku run python manage.py migrate
## Run local
heroku local web
## Run on Heroku
heroku open
## Create superuser
python manage.py createsuperuser
heroku run python manage.py createsuperuser
## Add migrations
git add booksdemo/migrations/*.py'
## Reset Postgres DB on Heroku
heroku pg:reset