metamaps--metamaps/README.md

21 lines
497 B
Markdown
Raw Normal View History

2018-03-03 20:57:02 +00:00
Make sure you have `nodemon` and `node-sass` installed
`$ npm install -g nodemon node-sass`
2018-03-04 03:52:41 +00:00
Run the following at the same time, in two terminals
2018-03-03 20:57:02 +00:00
```
2018-03-04 03:52:41 +00:00
$ API=http://localhost:3001 nodemon server.js
2018-03-03 20:57:02 +00:00
$ node-sass -w sass/application.scss public/css/application.css
2018-03-04 03:52:41 +00: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-04 03:52:41 +00:00
Run the metamaps api in another terminal using
`$ rails s -p 3001`