generator-flask-materialize

arudmin
js Styles
generator-flask-materialize JS library on GitHub generator-flask-materialize JS library on npm Download generator-flask-materialize JS library

Yeoman generator for Flask project to be deployed to materialize

Version 0.0.11
generator-flask-materialize has no homepage
generator-flask-materialize JS library on GitHub
generator-flask-materialize JS library on npm
Download generator-flask-materialize JS library
Keywords
yeomanyeoman-generatorflask-generatorpythonmaterializedokkuflaskyoframeworksmicro frameworksgeneratorcliherokutooldevelopment
<script type="module"> import generatorFlaskMaterialize from 'https://cdn.jsdelivr.net/npm/generator-flask-materialize@0.0.11/+esm' </script>
Learn more

Yeoman Flask Generator for Heroku with Materialize CSS Framework

Generator to use Yeoman on a Flask project then deploying on Heroku platform.

For more informations about Yeoman, see yeoman.io

For more informations about Materialize CSS, see materializecss.com

For more informations about Flask, see flask.pocoo.org

For more informations about Heroku, see heroku.com

Installation

$ npm install -g generator-flask-materialize

Init

Generates a new Flask app with all the basic files you need.

$ yo flask-materialize

Preparing

  1. Install virtualenv and activate it.

$ virtualenv venv && source venv/bin/activate

  1. Install pip package manager

  2. Then install flask required depensies.

$ pip install -r requirements.txt

Deployment to Heroku

$ git init

$ git add .

$ git commit -am "first commit"

$ heroku create [app-name]

$ git push heroku master

$ heroku open

Local

$ venv/bin/python ./server.py

Your application will be available at 127.0.0.1:5000.

Build

If you decided to use Frozen Flask, run $ python freeze.py to build a static version of your app.