-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnotes
More file actions
49 lines (38 loc) · 942 Bytes
/
Copy pathnotes
File metadata and controls
49 lines (38 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
*Overview
Video link
*Download OS and Boot Pi
Video link
https://www.raspberrypi.org/downloads/
*Install Nodejs
Video link
https://www.nodesource.com/
https://github.com/nodesource/distributions
*GPIO Test
Video
*Install Git Repo / Test LED and Relay
Video link
https://github.com/prichardsondev/RaspberryPiServer
*Install NginX & Test
Video link
-sudo apt-get install nginx
-sudo rm /etc/nginx/sites-enabled/default
-sudo nano /etc/nginx/sites-available/node
server {
listen 80;
server_name localhost;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass "http://127.0.0.1:3000";
}
}
-sudo ln -s /etc/nginx/sites-available/node /etc/nginx/sites-enabled/node
-sudo service nginx restart
*Install Dataplicity.com
Video link
https://www.dataplicity.com/
*Install PM2
Video link
-npm install pm2 -g
-pm2 start app.js
-pm2 startup