This is a react based fronted for Pi home frontend. This is a Express generated app.
git clone git@github.com:sidhantpanda/raspberry-pi-home-backend.git
cd raspberry-pi-home-backend && npm install
Follow instructions to set up nginx on raspbian here.
Open the default config file
sudo vim /etc/nginx/sites-enabled/default
Add the following near the location \
block
location /api/ {
proxy_pass http://localhost:5000;
}
location / {
...
Save the file and start/restart nginx server
sudo service nginx restart