Skip to content

Commit 81ba9ef

Browse files
author
Ankur Srivastava
committed
fixed docker image links
1 parent 8638256 commit 81ba9ef

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

README.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
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

910
Simple angular2 app with python-flask backend (for learning angular2)
1011

1112
## Info
13+
---
1214

1315
1. `backend` directory contains the flask backend with simple authentication methods
1416

1517
2. `front` directory contains the angular2 frontend based on [angular-webpack-starter](https://github.com/AngularClass/angular2-webpack-starter)
1618

1719
## Usage
20+
---
1821

1922
1. Clone the repo
2023

@@ -53,14 +56,15 @@ Simple angular2 app with python-flask backend (for learning angular2)
5356
5457
5. 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
6569
The current build is using `nginx` to serve static files. The pre-requisite is to run the following commands and then use `docker-compose`
6670

docker-compose.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
version: '2'
22
services:
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"

0 commit comments

Comments
 (0)