Home

Awesome

generator-flask-app

Yeoman Generator for modern web applications using flask.

Features

Installing

To install flask-app generator, run:

$ npm install -g generator-flask-app

Usage

Creating your app is as easy as:

$ yo flask-app

Just make sure you are already inside the directory for your new application. Just follow the questions and you'll have an application running in a moment;

Running My App

Before starting, make sure you have:

To setup all the dependencies for your project, run make setup.

After all the dependencies have been installed, you should be able to run your application with make run. Your application will be running in port 3000.

If you selected oauth application, make sure you use the host http://local.generator.com:3000/ or change the authorization providers to your own application.

If you have selected sqlalchemy support, you probable need to create the database before running with make db.

Running tests

To run your application tests, just run make test.

Application usage

General commands

Redis commands

Using Flask Admin

SQL Alchemy commands

PyRes commands

In order to use pyres, you must specify the queues to listen on. This can be done by setting the DEFAULT_QUEUES configuration or by running workers with "-q queue1,queue2";

IMPORTANT: Do not forget to update configuration (local.conf and other environments) with your redis connection string and change the resweb user and password;

Contributing

Please fork, update what you need and pull request.