https://github.com/pararell/flask-vue-books
My private library with flask and vue and goodreads api (login: test, password: test)
https://github.com/pararell/flask-vue-books
books bookshelf docker flask flask-backend flask-sqlalchemy goodreads goodreads-api mysql vue vuetify vuex
Last synced: about 1 month ago
JSON representation
My private library with flask and vue and goodreads api (login: test, password: test)
- Host: GitHub
- URL: https://github.com/pararell/flask-vue-books
- Owner: pararell
- Created: 2019-08-22T07:16:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T12:56:11.000Z (over 3 years ago)
- Last Synced: 2025-01-21T05:27:18.457Z (over 1 year ago)
- Topics: books, bookshelf, docker, flask, flask-backend, flask-sqlalchemy, goodreads, goodreads-api, mysql, vue, vuetify, vuex
- Language: Vue
- Homepage: http://privatelibrary.eu
- Size: 3.61 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Private Library
Books from your own library at one place - using goodreads api
(https://www.goodreads.com/api)
## Technology stack
Flask - BE, Vue - FE, MySQL - Database, Goodreads API, Docker, Heroku
### FLASK - local
Set enviroment ./server/app/main in .env - using in config.py
Important
- set DATABASE_URL - MySQL Database connection
- set GOODREADS_KEY - to use goodreads api
- set JWT_SECRET_KEY - random string
```
python manage.py create_db
python manage.py runserver
```
### VUE - local
Using Vue CLI
Set eniroment ./client in .env - VUE_APP_API_URL = 'http://localhost:5000'
```
npm run serve
```
### Docker
Set eniroment ./client in .env - VUE_APP_API_URL = ''
```
docker build -t web:latest
docker run -d name flask-vue-books -e "PORT=8765" -p 8001:8765 web:latest
(app on localhost:8001)
Stop and remove container -
docker stop flask-vue-books
docker rm flask-vue-books
check files
docker exec flask-vue-books ls
docker build -t registry.heroku.com/my-private-library/web .
docker push registry.heroku.com/my-private-library/web
heroku container:release --app my-private-library web
```