Why do you need an init process inside your Docker container (PID 1)When you run your application inside a Docker container, it will be assigned process identifier (PID) 1. This particular PID is special in the Unix world. PID 1 is assigned to the very first process that the kernel starts, therefore it takes a specia...Sep 7, 2022 · 7 min readdaveiscoding.com
Separate Node.js unit, integration, and E2E tests using Jest projectsThe classic test pyramid is made up of the unit, integration, and end-to-end tests. Unit tests are supposed to run fast after each change in your IDE and give immediate feedback. In contrast, integration and E2E tests are slow and are run on-demand. ...Aug 22, 2022 · 8 min readdaveiscoding.com
Node.js TypeScript monorepo via NPM workspacesMonorepos are all the rage right now. Modern projects are all using NX to set up a monorepo. But why would you introduce such a complex tool into your tech stack when something simple is often enough? Both Yarn and NPM include workspace management in...2SSAug 14, 2022 · 5 min readdaveiscoding.com
My feelings about Go after spending a weekend togetherI had a great weekend following the Learn Go with Tests online book. I spent about 15 hours going through the book and firing up a few practice projects. I know it’s not a lot to conclude, but I had enough experience with other languages to find the ...Feb 17, 2021 · 4 min readdaveiscoding.com
Setting up Prettier in a Create React App projectInstall dependencies # Yarn yarn add -D prettier eslint-config-prettier eslint-plugin-prettier # NPM npm install -D prettier eslint-config-prettier eslint-plugin-prettier By default your eslintConfig looks like this: "eslintConfig": { "extends"...Dec 20, 2020 · 2 min readdaveiscoding.com