Creating an appointment reminder app with .NET SDK
Testing your application
Let's put your appointment reminder app through its paces!
- Open a terminal or command prompt.
- Navigate into the
sinch_appointment_reminder
folder. - Run the following command:
dotnet run
You should see the following output on your console.
Build succeeded with warnings in 1.1s info: Microsoft.Hosting.Lifetime[14] Now listening on: http://localhost:5221 info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Development info: Microsoft.Hosting.Lifetime[0] Content root path: C:\Users\myuser\Desktop\getting started tutorials\dotnet\sinch-appointment-reminder
- Open a browser to the port identified in your console. Using the output from above, we'd open our browser to: http://localhost:5221/appointment.
- Try it out! Input an appointment for John Ricardo with Dr Jane Doe. Be sure to set the time and date so that the appointment is at least two hours and five minutes into the future. When you submit the appointment details, the application redirects you to a success page.
You should also get a text a couple of hours before the appointed time. (If you're doing this yourself, you may want to choose a date and time closer to the present!)