In this gist I show a simple setup for helping me build the frontend of a backend functionality before programming the latter. In this case it is the login functionality.
On the login page there are three buttons to allow me to login with different credentials, so that I can see what the server would tell me in each case. That will guide me to understand how I want to program the frontend.
A couple of seconds after clicking each button I'll get a response from the server.
- the first button will cause an error response, which I show in a feedback field on the login page.
- the second and third buttons will cause an OK response, which I store in the
authkey of the local storage system.