• Stars
    star
    204
  • Rank 192,063 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 11 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Yeoman generator for AngularJS + Flask

The Angular-Flask generator

A Yeoman generator for AngularJS and Flask.

Flask is a Python-based micro-framework. For AngularJS integration with other micro-frameworks, see https://github.com/rayokota/MicroFrameworkRosettaStone.

Installation

Install Git, node.js, and Python 2.7. The development mode also requires SQLite.

Install Yeoman:

npm install -g yo

Install the Angular-Flask generator:

npm install -g generator-angular-flask

The above prerequisites can be installed to a VM using the Angular-Flask provisioner.

Creating a Flask service

In a new directory, generate the service:

yo angular-flask

Install a virtual environment in new flask directory using install.sh (or install.bat for Windows):

./install.sh

Run the service:

flask/bin/python run.py

Your service will run at http://localhost:5000.

Creating a persistent entity

Generate the entity:

yo angular-flask:entity [myentity]

You will be asked to specify attributes for the entity, where each attribute has the following:

  • a name
  • a type (String, Integer, Float, Boolean, Date, Enum)
  • for a String attribute, an optional minimum and maximum length
  • for a numeric attribute, an optional minimum and maximum value
  • for a Date attribute, an optional constraint to either past values or future values
  • for an Enum attribute, a list of enumerated values
  • whether the attribute is required

Files that are regenerated will appear as conflicts. Allow the generator to overwrite these files as long as no custom changes have been made.

Create the database as described in this blog.

flask/bin/python db_create.py

Run the service:

flask/bin/python run.py

A client-side AngularJS application will now be available by running

grunt server

The Grunt server will run at http://localhost:9000. It will proxy REST requests to the Flask service running at http://localhost:5000.

At this point you should be able to navigate to a page to manage your persistent entities.

The Grunt server supports hot reloading of client-side HTML/CSS/Javascript file changes.

More Repositories

1

kareldb

A Relational Database Backed by Apache Kafka
Java
392
star
2

hgraphdb

HBase as a TinkerPop Graph Database
Java
251
star
3

kcache

An In-Memory Cache Backed by Apache Kafka
Java
238
star
4

generator-angular-go-martini

Yeoman generator for AngularJS + Go + Martini
JavaScript
186
star
5

awesome-hbase

A curated list of awesome HBase projects and resources.
161
star
6

MicroFrameworkRosettaStone

A comparison of a number of web micro-frameworks via code generation
142
star
7

kafka-graphs

Graph Analytics with Apache Kafka
Java
101
star
8

generator-angular-express-sequelize

Yeoman generator for AngularJS + Express + Sequelize
JavaScript
81
star
9

generator-angular-dropwizard

Yeoman generator for AngularJS + Dropwizard
JavaScript
66
star
10

generator-angular-slim

Yeoman generator for AngularJS + Slim
JavaScript
61
star
11

generator-angular-scotty

Yeoman generator for AngularJS + Scotty
JavaScript
54
star
12

generator-angular-sinatra

Yeoman generator for AngularJS + Sinatra
JavaScript
44
star
13

kwack

In-Memory Analytics for Kafka using DuckDB
Java
36
star
14

generator-angular-spark

Yeoman generator for AngularJS + Spark
JavaScript
34
star
15

kdatalog

Kafka as a Datalog Engine
Java
27
star
16

kgiraffe

A GraphQL Interface for Apache Kafka and Schema Registry
Java
24
star
17

hdocdb

HBase as a JSON Document Database
Java
24
star
18

keta

A Transactional Metadata Store Backed by Apache Kafka
Java
19
star
19

generator-angular-nancy

Yeoman generator for AngularJS + Nancy
JavaScript
16
star
20

generator-angular-scalatra

Yeoman generator for AngularJS + Scalatra
JavaScript
16
star
21

generator-angular-luminus

Yeoman generator for AngularJS + Luminus
JavaScript
12
star
22

schema-registry-browser

Confluent Schema Registry Browser
Vue
12
star
23

generator-angular-mojolicious

Yeoman generator for AngularJS + Mojolicious
JavaScript
12
star
24

kafka-connect-streams

Kafka Connect Integration with Kafka Streams + KSQL
Java
11
star
25

stream-processing-kickstarter

A comparison of stream-processing frameworks with Kafka integration
Java
10
star
26

generator-angular-ratpack

Yeoman generator for AngularJS + Ratpack
JavaScript
10
star
27

janusgraph-kafka

Kafka storage adapter for JanusGraph
Java
9
star
28

generator-angular-dynamo

Yeoman generator for AngularJS + Dynamo
JavaScript
9
star
29

generator-angular-suave

Yeoman generator for AngularJS + Suave
JavaScript
8
star
30

kmachines

Distributed Fine-Grained Finite State Machines with Kafka
Java
8
star
31

generator-angular-caveman2

Yeoman generator for AngularJS + Caveman2
JavaScript
7
star
32

provision-angular-flask

Ansible provisioner for AngularJS + Flask
6
star
33

hentitydb

HBase as an Entity Database
Java
6
star
34

jsonata-python

JSONata for Python
Python
6
star
35

generator-angular-opium

Yeoman generator for AngularJS + Opium
JavaScript
6
star
36

provision-angular-go-martini

Ansible provisioner for AngularJS + Go + Martini
5
star
37

schema-registry-chess-engine

Confluent Schema Registry Chess Engine
Java
5
star
38

kafka-connect-jsonata

Kafka Connect JSONata Transform
Java
5
star
39

kstore

A Wide Column Store Backed by Apache Kafka
Java
4
star
40

schema-registry-mode-plugin

Confluent Schema Registry Subject Modes
Java
4
star
41

provision-angular-express-sequelize

Ansible provisioner for AngularJS + Express + Sequelize
3
star
42

generator-angular-nickel

Yeoman generator for AngularJS + Nickel
JavaScript
3
star
43

janusgraph-cosmosdb

The Azure Cosmos DB Storage Backend for JanusGraph
Java
3
star
44

generator-angular-axiom

Yeoman generator for AngularJS + Axiom
JavaScript
3
star
45

provision-angular-dropwizard

Ansible provisioner for AngularJS + Dropwizard
3
star
46

generator-angular-orbit

Yeoman generator for AngularJS + Orbit
JavaScript
2
star
47

kstore-shell

HBase Shell for KStore
Shell
2
star
48

cel.net

Common Expression Language for .NET
Starlark
2
star
49

generator-angular-spin

Yeoman generator for AngularJS + Spin
JavaScript
2
star
50

provision-angular-spark

Ansible provisioner for AngularJS + Spark
2
star
51

generator-angular-chinook

Yeoman generator for AngularJS + Chinook
JavaScript
2
star
52

json-schema-compatibility

Java
2
star
53

provision-angular-caveman2

Ansible provisioner for AngularJS + Caveman2
2
star
54

generator-angular-kitura

Yeoman generator for AngularJS + Kitura
JavaScript
2
star
55

provision-angular-scotty

Ansible provisioner for AngularJS + Scotty
1
star
56

generator-aurelia-dropwizard

Yeoman generator for Aurelia + Dropwizard
JavaScript
1
star
57

generator-angular-start

Yeoman generator for AngularJS + Start
JavaScript
1
star
58

provision-angular-luminus

Ansible provisioner for AngularJS + Luminus
1
star
59

maestro

A Dropwizard service for running orchestrations.
JavaScript
1
star
60

provision-angular-mojolicious

Ansible provisioner for AngularJS + Mojolicious
1
star
61

demo-data-contracts

Java
1
star