Skip to content

My personal blog writen with Flask and VueJS and hosted on pythonanywhere.com

License

Notifications You must be signed in to change notification settings

dasdachs/dasblog

Repository files navigation

dasblog

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.

Backend

Installation

  1. Create a virtual environment (use Virtual Enviroments or venv)

Example: python -m venv flask-blog

  1. Within your virtual environment folder (in this case flask-blog) create a folder named app

  2. Clone or copy this repository into this folder

  3. Run pip install -r requirements.txt

  4. Change the directory to flask-blog

  5. Execute python manage.py createsuperuser

  6. Run python manage.py runserver

Deploying

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.

Frontend

Build Setup

# 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.

About

My personal blog writen with Flask and VueJS and hosted on pythonanywhere.com

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published