Blog writen with Flask and VueJS and hosted on pythonanywhere.com
I use this app as my personal blog while scrapers are meant for personal use. But they could be used to make something similar to the django-dynamic-scraper.
The app follows design patterns laid out by Miguel Grinberg (especially his book Flask Web Development and his talk PyCon 2014 talk Flask by Example) and cookiecutter-flask.
The app is written in Python 3.
If you have any questions or suggestions feel free to contact me.
- Create a virtual environment (use Virtual Enviroments or venv)
Example:
python -m venv flask-blog
-
Within your virtual environment folder (in this case
flask-blog
) create a folder namedapp
-
Clone or copy this repository into this folder
-
Run
pip install -r requirements.txt
-
Change the directory to
flask-blog
-
Execute
python manage.py createsuperuser
-
Run
python manage.py runserver
For this project I use Pythonanywhere. You can deploy your app using git or you could just upload your files from your profile. It's really straight forward and you have the option to edit you code using their online editor.
Since Jacob Kaplan-Moss mentioned that Python frameworks are in decline at Heroku (somewhere here) I added a procfile and use Gunicorn to make deploying to Heroku as easy as possible. Consult Heroku's instructions for installations.
For other deployment options please consult the respective instructions.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, consult the docs for vue-loader.