ASPNET Core website that exposes features of the pi-dotnetcore library as a RESTful service.
- clone this repostory:
git clone https://github.com/arnolddustin/pi-service.git
- configure your Raspberry Pi for running dotnet. full instructions can be found here.
- build the service and deploy it to the Raspberry Pi by running the publish script:
./publish.sh
. The script builds the dotnetcore 2.0 app for the linux-arm platform then usesrsync
to copy the build output to a Pi listening at at the login/hostpi@raspberrypi
.
- after
ssh
to the pi- change to the
pi-service
directory - start the service by running
sudo ./pi-service &