Skip to content

Commit

Permalink
Merge pull request #8 from am-jo-zt/add-script-shortcuts
Browse files Browse the repository at this point in the history
add script-shortcuts to `package.json` in root
  • Loading branch information
danxfisher authored Jul 17, 2018
2 parents 9383cc4 + 8d76e41 commit 897e416
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,17 @@ This application assumes you have:
"proxy" : "http://localhost:8080"
```
to whatever the IP of where express is running. Typically you can use something similar to the default but you can change the IP and port as long as it coincides with what is in `server.js`.
4. In `ui-react/`, open a terminal or cmd:
4. In the root directory, open a terminal or cmd:
```
$ npm install
$ npm run build
```
5. In the root directory, open a terminal or cmd:
```
$ node server.js
$ npm start
```
6. If you want to start the react development server, in `ui-react/` run:
6. If you want to start the react development server, in the root directory run:
```
$ npm start
$ npm start-ui-dev
```
***
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "flighttracker",
"main": "server.js",
"scripts": {
"postinstall": "cd ui-react && npm install",
"build": "cd ui-react && npm run build",
"start": "node server",
"start-ui-dev": "cd ui-react && npm start"
},
"dependencies": {
"ews-javascript-api": "^0.8.0",
"express": "^4.16.2",
Expand Down

0 comments on commit 897e416

Please # to comment.