Creating an appointment reminder app with Python SDK

Testing your application

Let's put your appointment reminder app through its paces!

  1. Open a terminal or command prompt and navigate into the sinch-appointment-reminder folder your created.
  2. Run the following command:
    Copy
    Copied
    python appointment_server.py

    You should see the following on your console.

    Copy
    Copied
    * Serving Flask app 'appointment_server'
    * Debug mode: on
    WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
    * Running on http://127.0.0.1:5010
    Press CTRL+C to quit
    * Restarting with stat
    * Debugger is active!
    * Debugger PIN: 113-255-669
  3. Open a browser and navigate to the port identified by the output. In this case, you'd navigate to http://localhost:5010/.
  4. 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!)



We'd love to hear from you!
Rate this content:
Still have a question?
 
Ask the community.