Before starting, you'll need to have those below.
Node@7.7.3
NPM@4.1.2
Express@^4.13.3
React@^^15.3.2
$ git clone -b wayne git@github.com:waynelai614/react-homework.git
$ cd react-homework/
Boot the app with
$ docker-compose up -d
- API Server: http://0.0.0.0:8080
- Client Server: http://0.0.0.0:3000
$ docker ps
- Services (defined in
docker-compose.yml
)mongo
api
web
$ docker-compose run [SERVICE_NAME] /bin/bash
$ docker-compose down
- API Server
- Single run
$ sh test api-server
- Watch mode
$ sh test api-server -w
- Single run
- Client Server
- Single run
$ sh test client-server
- Watch mode
$ sh test client-server -w
- Karma server started at http://0.0.0.0:9876/
- Single run