Skip to content

Commit

Permalink
fixed docker image links
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankur Srivastava committed Sep 14, 2017
1 parent 8638256 commit 81ba9ef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
22 changes: 13 additions & 9 deletions README.md
@@ -1,20 +1,23 @@
# angular2-flask
---

`Angular2-Frontend`
`Backend` [![DockerPulls](https://img.shields.io/docker/pulls/ansrivas/flask-backend.svg)](https://registry.hub.docker.com/u/ansrivas/flask-backend/)

`Frontend`
[![DockerPulls](https://img.shields.io/docker/pulls/ansrivas/angular2-frontend.svg)](https://registry.hub.docker.com/u/ansrivas/angular2-frontend/)

`Flask-backend` [![DockerPulls](https://img.shields.io/docker/pulls/ansrivas/flask-backend.svg)](https://registry.hub.docker.com/u/ansrivas/flask-backend/)

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

## Info
---

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

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

## Usage
---

1. Clone the repo

Expand Down Expand Up @@ -53,14 +56,15 @@ Simple angular2 app with python-flask backend (for learning angular2)

5. Extra Note: To create a production build

```bash
cd front
npm install webpack-dev-server rimraf webpack typescript -g
npm install
npm run build:prod
```
```bash
cd front
npm install webpack-dev-server rimraf webpack typescript -g
npm install
npm run build:prod
```

### Docker support:
## Docker support:
---

The current build is using `nginx` to serve static files. The pre-requisite is to run the following commands and then use `docker-compose`

Expand Down
6 changes: 2 additions & 4 deletions docker-compose.yml
@@ -1,12 +1,10 @@
version: '2'
services:
backend-s:
build: ./backend
image: ansrivas/server:latest
image: ansrivas/flask-backend:latest
container_name: backend-c
frontend-s:
build: ./front
image: ansrivas/frontend:latest
image: ansrivas/angular2-frontend:latest
container_name: frontend-c
ports:
- "3000:80"
Expand Down

0 comments on commit 81ba9ef

Please sign in to comment.