2016-08-01 02:51:06 +08:00
|
|
|
|
2018-03-03 15:57:02 -05:00
|
|
|
Make sure you have `nodemon` and `node-sass` installed
|
|
|
|
`$ npm install -g nodemon node-sass`
|
2016-08-01 02:51:06 +08:00
|
|
|
|
|
|
|
|
2018-03-03 22:52:41 -05:00
|
|
|
Run the following at the same time, in two terminals
|
2016-08-01 02:51:06 +08:00
|
|
|
|
2018-03-03 15:57:02 -05:00
|
|
|
```
|
2018-03-03 22:52:41 -05:00
|
|
|
$ API=http://localhost:3001 nodemon server.js
|
2018-03-03 15:57:02 -05:00
|
|
|
$ node-sass -w sass/application.scss public/css/application.css
|
2018-03-03 22:52:41 -05:00
|
|
|
```
|
|
|
|
|
2018-03-04 19:30:17 -05:00
|
|
|
To run the server as a daemon that will be re-run if it crashes, you can
|
|
|
|
use the forever node package.
|
|
|
|
```
|
|
|
|
$ npm install -g forever
|
|
|
|
$ forever start server.js
|
|
|
|
```
|
|
|
|
|
2018-03-03 22:52:41 -05:00
|
|
|
Run the metamaps api in another terminal using
|
|
|
|
`$ rails s -p 3001`
|