metamaps--metamaps/README.md

21 lines
497 B
Markdown
Raw Normal View History

2018-03-03 15:57:02 -05:00
Make sure you have `nodemon` and `node-sass` installed
`$ npm install -g nodemon node-sass`
2018-03-03 22:52:41 -05:00
Run the following at the same time, in two terminals
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
```
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`