This is a react based fronted for Pi home backend. This is a Create React App generated app in the "unejected" state.
git clone git@github.com:sidhantpanda/raspberry-pi-home-frontend.git
npm run build
- OR -
yarn build
Follow instructions to set up nginx on raspbian here.
Open the default config file
sudo vim /etc/nginx/sites-enabled/default
Look for the following line and edit it to the build directory of the repo:
-- root /var/www/html;
++ root /path/to/repo/build;
Save the file and start/restart nginx server
sudo service nginx restart