Application skeleton for typical Flask and AngularJS applications.
CSS HTML Other
Switch branches/tags
Nothing to show
Clone or download
rdempsey Readme updates
Readme updates for days, because sometimes spelling is hard.
Latest commit f2f108b Apr 17, 2016

README.md

Base Flask App

Overview

This project is application skeleton for typical Flask and AngularJS web apps. You can use it to quickly bootstrap your Flask and Angular web app projects and dev environment.

The project contains two things:

  1. A sample Flask application configured to serve dynamic pages as well as provide an example API
  2. A sample AngularJS application based off angular-seed used to interact with the API created using Flask

What's In The Box - Flask

There's a ton of pre-packaged goodness in the Flask application for you. Here's the list:

Design

  • Fully implemented Bootstrap theme: Readable from Bootswatch
  • Over 250 glyphs in font format from the Glyphicon Halflings set.
  • Done-for-you drop-down menus just waiting for you to expand the app and add your own urls.
  • Custom favicon made from the Flask logo. Just replace it with yours.

Javascript

Python

What's In The Box - AngularJS

The AngularJS application is preconfigured to install the Angular framework and a host of development and testing tools. The app does one thing - demonstrates how to interact with a RESTful API.

Requirements

  • Python 2.7+

If you want to run the AngularJS application, you will also need:

Getting Started

Clone the repo

git clone https://github.com/rdempsey/base-flask-app

Navigate to the main directory

cd base-flask-app/api

Install the requirements

pip install -r requirements.txt

Run the Flask App

If you would like run the Flask application, do this:

Change into the api directory:

cd api

Run the Flask app:

python index.py

Navigate to the home page: http://localhost:5000

Run the AngularJS App

If you would like run the included AngularJS application, perform the steps in the previous section to start the Flask app and then do the following:

Open a second terminal window and navigate to the angular-for-flask directory (in the base-flask-app folder):

cd base-flask-app/angular-for-flask

Install the required dependencies:

npm install

Use Bower to install bootstrap (may require sudo):

bower install bootstrap

Run the application:

npm start

Browse to the default page: http://localhost:8000/app