Back-end exercise with server rendering by using mustache template engine. Use middlewares for request logger, error handeling and session handeling.
A hamsterwars page where I can vote for which hamster is sweeter out of two hamsters (randomly pictures).When a hamster is selected, the vote is sent and saved at Mongodb Atlas. At the scoreboard, all hamsters voting are available via get/result.
Example codes in the view, server.js and sessionhandler: