File tree 2 files changed +15
-13
lines changed
2 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 1
1
# angular2-flask
2
2
---
3
3
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 `
5
7
[ ![ DockerPulls] ( https://img.shields.io/docker/pulls/ansrivas/angular2-frontend.svg )] ( https://registry.hub.docker.com/u/ansrivas/angular2-frontend/ )
6
8
7
- ` Flask-backend ` [ ![ DockerPulls] ( https://img.shields.io/docker/pulls/ansrivas/flask-backend.svg )] ( https://registry.hub.docker.com/u/ansrivas/flask-backend/ )
8
9
9
10
Simple angular2 app with python-flask backend (for learning angular2)
10
11
11
12
## Info
13
+ ---
12
14
13
15
1 . ` backend ` directory contains the flask backend with simple authentication methods
14
16
15
17
2 . ` front ` directory contains the angular2 frontend based on [ angular-webpack-starter] ( https://github.com/AngularClass/angular2-webpack-starter )
16
18
17
19
## Usage
20
+ ---
18
21
19
22
1 . Clone the repo
20
23
@@ -53,14 +56,15 @@ Simple angular2 app with python-flask backend (for learning angular2)
53
56
54
57
5. Extra Note: To create a production build
55
58
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
+ ```
62
65
63
- ### Docker support:
66
+ ## Docker support:
67
+ ---
64
68
65
69
The current build is using `nginx` to serve static files. The pre-requisite is to run the following commands and then use `docker-compose`
66
70
Original file line number Diff line number Diff line change 1
1
version : ' 2'
2
2
services :
3
3
backend-s :
4
- build : ./backend
5
- image : ansrivas/server:latest
4
+ image : ansrivas/flask-backend:latest
6
5
container_name : backend-c
7
6
frontend-s :
8
- build : ./front
9
- image : ansrivas/frontend:latest
7
+ image : ansrivas/angular2-frontend:latest
10
8
container_name : frontend-c
11
9
ports :
12
10
- " 3000:80"
You can’t perform that action at this time.
0 commit comments