GithubHelp home page GithubHelp logo

rdempsey / base-flask-app Goto Github PK

View Code? Open in Web Editor NEW
11.0 4.0 0.0 339 KB

Application skeleton for typical Flask and AngularJS applications.

License: MIT License

Python 0.91% CSS 92.47% HTML 6.06% JavaScript 0.57%

base-flask-app's Introduction

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

base-flask-app's People

Contributors

rdempsey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.