File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed
Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ http://upperbound.com/projects/drinkbot/
66
77There are a few other dependencies:
88
9- * MongoDB (for data storage)
10- * picotts (for text-to-speech synthesis)
11- * mpg123 (for playing MP3 audio files)
9+ * [ MongoDB] ( http://mongodb.com ) (for data storage)
10+ * [ pico2wave ] ( http://my-small-projects.blogspot.com/2016/01/raspberry-pi-text-to-speech-pico2wave.html ) (for text-to-speech synthesis)
11+ * [ mpg123] ( https://www.mpg123.de/ ) (for playing MP3 audio files)
1212
1313## To start the application
1414
@@ -17,7 +17,7 @@ Change to the folder where you downloaded the files.
1717Start the backend:
1818
1919```
20- $ node backend.js &
20+ $ sudo node backend.js &
2121```
2222
2323Start the web front-end:
@@ -27,7 +27,23 @@ $ cd frontend
2727$ node server.js &
2828```
2929
30- If you want to start it at boot, you can add this to your crontab (your paths may be different):
30+ If you want to start it at boot, you can do the following:
31+ 1 . Install [ forever] ( https://github.com/foreverjs/forever ) :
32+
33+ ```
34+ $ sudo npm install -g forever
35+ ```
36+
37+
38+ 2 . Add this to your crontab (your paths may be different):
39+
40+ Run:
41+
42+ ```
43+ $ crontab -e
44+ ```
45+
46+ and then add:
3147
3248```
3349@reboot export NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript && sudo -E /usr/bin/forever start -o /home/pi/projects/nodeapps/drinkbot/backend.log -e /home/pi/projects/nodeapps/drinkbot/backend.err /home/pi/projects/nodeapps/drinkbot/backend.js
You can’t perform that action at this time.
0 commit comments