Update readme again

This commit is contained in:
Jeff Leung 2022-01-04 14:20:42 -08:00
parent 4ef214c7f5
commit 62646f9ded
1 changed files with 26 additions and 2 deletions

View File

@ -38,6 +38,7 @@ This endpoint takes a GET or POST request to add or remove Microsoft Teams webho
* Migrate away from SQLite to an actual multi-user SQL database - PGSql or MySQL will work as there are supported EF Core Providers for this
* Route DID's to specific destinations
* An actual admin UI with authentication provided by Azure AD
* Windows Service Capability
## Building
@ -63,7 +64,30 @@ A generic Linux Intel 64-bit machine is being used for this example.
1. Ensure you have the .NET Entity Framework Core Tools installed on your development machine
2. Run the following command at the root of the source tree ``dotnet ef database update --project TwilioSMSReceiver.Data -s TwilioSMSReceiver``
3. Use a [SQLite DB Editor](https://sqlitebrowser.org/) and insert any Microsoft Teams WebHook links to the MSTeamsWebHooks table. An example would be:
```insert into MSTeamsWebHooks (WebHookUri) VALUES ("msteamswebhookurlhere");```
```SQL
INSERT INTO MSTeamsWebHooks (WebHookUri) VALUES ("msteamswebhookurlhere");
```
3. Copy the ``smsdatabase.sqlite`` database file to the root of the directory where the app will run from
4. Start the TwilioSMSReceiver app up
The app can be daemonized on Linux as a systemd unit file if you wish to, an example is here:
```INI
[Unit]
Description=SMS Receiver
[Service]
WorkingDirectory=/opt/SMSReceiver
ExecStart=/opt/SMSReceiver/TwilioSMSReceiver
Restart=always
RestartSec=10
SyslogIdentifier=SMSReceiver
User=dotnet
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
Environment=ASPNETCORE_URLS="http://[::]:9999"
[Install]
WantedBy=multi-user.target
```
Windows service support will come in a later release