Skip to content

Wiring it all up

Course: PayTM project - chapter 21

You can use

  1. fetch or
  2. axios to wire up calls to the backend server.

The final code looks something like this -

https://github.com/100xdevs-cohort-2/paytm/tree/complete-solution (complete-solution branch on the repo)

The important bits here are -

  1. Signup call - https://github.com/100xdevs-cohort-2/paytm/blob/complete-solution/frontend/src/pages/Signup.jsx#L36
  2. Call to get all the users given the filter - https://github.com/100xdevs-cohort-2/paytm/blob/complete-solution/frontend/src/components/Users.jsx#L13
  3. Call to transfer money b/w accounts - https://github.com/100xdevs-cohort-2/paytm/blob/complete-solution/frontend/src/pages/SendMoney.jsx#L45