Giter Site home page Giter Site logo

Appointments (backend) about elevate HOT 2 CLOSED

rithmschool avatar rithmschool commented on July 17, 2024
Appointments (backend)

from elevate.

Comments (2)

stephaniesimms avatar stephaniesimms commented on July 17, 2024

investigating Calendly integration and Webhooks subscription:
https://developer.calendly.com/docs/getting-started
https://help.calendly.com/hc/en-us/articles/360020052833-Advanced-embed-options#3
https://stackoverflow.com/questions/53891698/embed-calendly-into-react

Stripe webhooks documentation (more informative):
https://stripe.com/docs/webhooks/setup

  • add webhook endpoint to elevate server
  • create a webhook subscription POST to calendly, use ngrok to test locally
  • test receiving webhook events, respond with 200 received
  • design data model for appointments/events: users, appointments (entire event object), join table for active appts
  • parse JSON event object
  • create schema to validate data TODO: add email
  • add validation to route
  • write business logic to handle invitee.created and invitee.canceled events
  • appointments model with find, create/reschedule, cancel
  • finish tests

Testing notes:

  • restart local server AND ngrok every time we make a change to code
  • establish new webhook with calendly
  • continue testing
  • as long as 200 status can continue testing without restarting

Misc questions:

  • single webhook subscription for team/admin. each professional needs own calendly account. add calendly user ids to elevate users_calendly_users table to associate it with user id.
  • Stripe docs on best practices/handling duplicate events: logging the events you’ve processed, and then not processing already-logged events
  • exception for CSRF - other security issues?

PRs to submit:

  1. data.sql update (make appt dates for distant future)
  2. webhook endpoint and tests; appointments model and tests

from elevate.

stephaniesimms avatar stephaniesimms commented on July 17, 2024

PR merged
documentation details added to readme

from elevate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.