A Raspberry Pi 3 is needed for the Project.
-
Change Email Receiver and Email Sender Account in Visual Studio Project in RaspBier/customSettings.json
"MailHost": "raspbier@mail.com",
"MailHostPassword": "",
"MailReceiver": "test@test.com",
-
Create Database:
-
(Optional) Change Foldername for Database if wanted in /RaspBier/customSettings.json:
e.g:
"DBPath": "/home/pi/DB.db"
-
Open Visual Studio Projekt
-
Open packet Manager console View->More Windows->Packet Manager Console
-
Run following Commands in Packet Manager Console:
- InitalCreate (this creates an "action" in the Migrations-folder):
Add-Migration InitialCreate
- Update DB (run this to apply the created action on the database)
Update-Database -Verbose
- Copy Released Project to Raspberry Pi:
-
Run following Commands in Packet Manager Console in Visual Studio:
-
Publish Project with the following Command:
dotnet publish -r linux-arm -c Release
-
Copy ~\RaspBier\RaspBier\bin\Release\netcoreapp2.1\linux-arm\publish to /home/pi/RaspBier
-
On Raspberry Pi change URL in /home/pi/RaspBier/customSettings.json to Raspberry IP Address(Get IP Address on Pi with Command
ifconfig
)!!!
e.g: `"Url": "http://192.168.10.118:50000",`
-
Don't forget to set Rights for Project:
chmod 755 ./RaspBier
-
Start Raspberry Pi Webpage:
./RaspBier