Git Product home page Git Product logo

dasblog's Introduction

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.

dasblog's People

Contributors

dasdachs avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.