Express Basics Activity

You will be creating a server that behaves like an ATM

Part 1

Create a hello world express app

Part 2

Create a route /balance that gets the balance of the account

Part 3

Create a route /withdraw that withdraws money from the account. The withdraw amount will be in the body

Part 4

Create a route /deposit that deposits money from the account. The deposit amount will be in the body

Challange

Create a frontend containing a form. The form should get the transfer type (withdraw/deposit) and the amount from the user. After a transfer occurs, the user should see their new balance