Flask Elm Starter Kit Save

Simple starter kit/boilerplate to get started with Flask, Elm and Brunch.

Project README

flask-elm-starter-kit

A simple Flask application with Elm for the frontend.

This starter kit shows how to use Elm with a Flask application.

All pages are rendered on the server. Elm provides parts of the frontend instead of using plain Javascript. This example shows how to use Elm in none single page applications and how to integrate it with existing Javascript code.

Brunch is used as the build tool.

Demo

Requirements

  • Elm >= 0.18
  • Node >= 5
  • Python >= 2.7

Get Started

Clone the repository:

$ git clone https://github.com/hypebeast/flask-elm-starter-kit.git

Install all packages:

$ npm install
$ pip install -r requirements.txt
$ export FLASK_APP=server/app.py
$ export FLASK_DEBUG=1

Now, start the server:

$ flask run

Run brunch in development mode:

$ npm run dev

Open your browser and visit http://localhost:5000.

Heroku

This application can be hosted on Heroku. The provided fabfile.py helps you to setup the application on Heroku.

To setup the application run the following command:

$ fab init

This will setup the application on Heroku.

Open Source Agenda is not affiliated with "Flask Elm Starter Kit" Project. README Source: hypebeast/flask-elm-starter-kit
Stars
33
Open Issues
0
Last Commit
6 years ago

Open Source Agenda Badge

Open Source Agenda Rating