Skip to content

Commit

Permalink
Added start:win npm script command to support Windows development env…
Browse files Browse the repository at this point in the history
…ironments. Created start-dev.js entry script for less verbose package.json script commands (GordyD#47)
  • Loading branch information
snobear authored and GordyD committed Jun 9, 2016
1 parent e615f36 commit fbbfaad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ You will need to install [RethinkDB](http://www.rethinkdb.com). You can find ins

### Running Dev Server

- Run `npm start` will start Webpack dev server - for serving the client, and also start the API server
- Go to http://localhost:3001 in two seperate tabs - see changes propagate in real time (Hot Module Replacement works too)
On Linux/OSX: `npm start`

On Windows: `npm run start:win`

This will start the Webpack dev server - for serving the client, as well as the server-side API.

Go to http://localhost:3001 in two separate tabs - see changes propagate in real time (Hot Module Replacement works too).

### Running Production Server

Expand All @@ -50,6 +55,8 @@ You will need to roll out your own deployment script for a server, but before yo
- Run `npm run start:prod` to run on your server
- Go to your URL

NOTE: Production has not been tested on Windows.

### Tech Used

| **Tech** | **Description** | **Version** |
Expand All @@ -63,7 +70,3 @@ You will need to roll out your own deployment script for a server, but before yo
| [Webpack](https://webpack.github.io/) | Module bundling + build for client | 1.13.0 |
| [Superagent](https://github.com/visionmedia/superagent) | Universal http requests | 1.8.0 |
| [Stylus](http://stylus-lang.com/) | Expressive, dynamic, robust CSS | 0.54.0 |




3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build:prod": "NODE_ENV=production webpack",
"db-setup": "node dbSetup.babel.js",
"lint": "eslint client server universal test server.js dbSetup.js",
"start": "NODE_ENV=development node server.babel.js & node server.webpack.js",
"start": "NODE_ENV=development node start-dev.js",
"start:win": "set NODE_ENV=development&&node start-dev.js",
"start:prod": "NODE_ENV=production node server.babel.js",
"test": "./node_modules/karma/bin/karma start"
},
Expand Down
2 changes: 2 additions & 0 deletions start-dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require('./server.babel.js');
require('./server.webpack.js');

0 comments on commit fbbfaad

Please sign in to comment.