File tree Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Expand file tree Collapse file tree 2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 11# angular2-flask
22---
33
4- ` Angular2-Frontend `
4+ ` Backend ` [ ![ DockerPulls] ( https://img.shields.io/docker/pulls/ansrivas/flask-backend.svg )] ( https://registry.hub.docker.com/u/ansrivas/flask-backend/ )
5+
6+ ` Frontend `
57[ ![ DockerPulls] ( https://img.shields.io/docker/pulls/ansrivas/angular2-frontend.svg )] ( https://registry.hub.docker.com/u/ansrivas/angular2-frontend/ )
68
7- ` Flask-backend ` [ ![ DockerPulls] ( https://img.shields.io/docker/pulls/ansrivas/flask-backend.svg )] ( https://registry.hub.docker.com/u/ansrivas/flask-backend/ )
89
910Simple angular2 app with python-flask backend (for learning angular2)
1011
1112## Info
13+ ---
1214
13151 . ` backend ` directory contains the flask backend with simple authentication methods
1416
15172 . ` front ` directory contains the angular2 frontend based on [ angular-webpack-starter] ( https://github.com/AngularClass/angular2-webpack-starter )
1618
1719## Usage
20+ ---
1821
19221 . Clone the repo
2023
@@ -53,14 +56,15 @@ Simple angular2 app with python-flask backend (for learning angular2)
5356
54575. Extra Note: To create a production build
5558
56- ```bash
57- cd front
58- npm install webpack-dev-server rimraf webpack typescript -g
59- npm install
60- npm run build:prod
61- ```
59+ ```bash
60+ cd front
61+ npm install webpack-dev-server rimraf webpack typescript -g
62+ npm install
63+ npm run build:prod
64+ ```
6265
63- ### Docker support:
66+ ## Docker support:
67+ ---
6468
6569The current build is using `nginx` to serve static files. The pre-requisite is to run the following commands and then use `docker-compose`
6670
Original file line number Diff line number Diff line change 11version : ' 2'
22services :
33 backend-s :
4- build : ./backend
5- image : ansrivas/server:latest
4+ image : ansrivas/flask-backend:latest
65 container_name : backend-c
76 frontend-s :
8- build : ./front
9- image : ansrivas/frontend:latest
7+ image : ansrivas/angular2-frontend:latest
108 container_name : frontend-c
119 ports :
1210 - " 3000:80"
You can’t perform that action at this time.
0 commit comments