expressjs

Lerna

May 4, 2020
nodejs, docker, expressjs, lerna, monorepo

Monorepo (all projects are stored in a single repository) is a relatively new concept (to me) and so I’ve provided more than usual hits/sample code in the kata. This is primarily to help me cement the core commands. The BACKGROUND to why I’ve created this is kata is this. I’ve recently needed to create several RabbitMQ consumers through a devised pattern, including additional common functionality. As there is common code, I did not want to violate the DRY principle so set about researching a way to do this, easily, with a nodejs repo. ...

React Express Socketio

April 27, 2020
nodejs, expressjs, react, socket.io, websockets

Requirements: Create a React application and run it to get default page Remove all extant files Create a new App.js starter file Add socket-io to server.js Add socket-io-client to App component Send ‘Welcome!’ message on client connect Render ‘Welcome!’ message from the server Tech: nodejs npm npx react (create-react-app) socket.io (socker-io) socket.io-client (https://www.npmjs.com/package/socket.io-client) References ...