To see our previous work in action:
- Run the Socket.IO server first. Open a new terminal and run:
node middleware-server.js
- On your web browser, navigate to:
http://localhost:1337
- You will see a login form with two fields, username and password
- Try to log in with random invalid credentials. The following error is displayed:
invalid credentials
- Next, try to log in with johntm as username and any password. The following error is displayed:
Banned user!
- After that, log in with any of the two other valid credentials. For instance, using jingxuan as username and qscwdvb as password. The following title is displayed:
Connected to /home