Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@
* Gulp - Install: `npm install gulp -g`

## Gulp tasks
* `gulp serve` - Will build and create a local server. This instance will call the Axiom Zen's API.
* `gulp serve` - Will build and create a local server. This instance will call the localhost API.
* `gulp dist` - Will build the UI using minified javascript. The build will be in the `dist` folder.
* `gulp test` - Will run all unit tests.
* `gulp tdd` - Will run all unit tests, watch file changes and run again.

## Demo
## Development

There is a running instance here: https://pugstunt.github.io/mastermind/
You can use Docker to run the backend and proxy it.
```sh
docker run -d --name=redis redis:alpine
docker run -d -p 8080:8080 --link redis:db -e redis.connection.string=redis://db:6379 pugstunt/mastermind-api:latest
```
2 changes: 1 addition & 1 deletion gulp/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function browserSyncInit(baseDir, browser) {
*
* For more details and option, https://github.com/chimurai/http-proxy-middleware/blob/v0.9.0/README.md
*/
// server.middleware = proxyMiddleware('/users', {target: 'http://jsonplaceholder.typicode.com', changeOrigin: true});
server.middleware = proxyMiddleware('/api', {target: 'http://localhost:8080/mastermind/api/v1', pathRewrite: {'^/api' : ''}});

browserSync.instance = browserSync.init({
startPath: '/',
Expand Down