This project shows how to implement server sent events using Node.js and React.
- Node.js 12+
- React with hooks
cd backend
yarn install
yarn start
cd frontend
yarn install
yarn start
Send a POST request to the route http://localhost:4650/donate with the following body:
{
"amount": 10
}
You will see the frontend being update automagically!