Permission Denied When Installing NPM Packages With Docker

I have the following Dockerfile for a React app:

base image FROM node:11.12.0-alpine # set working directory WORKDIR /usr/src/app # add /usr/src/app/node_modules/.bin to $PATH ENV PATH /usr/src/app/node_modules/.bin:$PATH # install and cache app dependencies COPY package.json /usr/src/app/package.json COPY package-lock.json /usr/src/app/package-lock.json RUN npm install react-scripts@3.0.1 -g –silent RUN chown -R node:node . USER node RUN npm ci # start app CMD ["npm", "start"] After setting up the work directory I copy the package.

Read more →

Friday Picks 012

Here are some things I've found useful this week or that I enjoyed: The Architecture of Open Source Applications - some free books on architecture! Use Svelte with SASS/SCSS in VSCode - add SASS to your Svelte project An Introduction to Domain-Driven Design - DDD w/ TypeScript - provides a good overview on DDD How to make your NodeJS application or API secure - some beginner-friendly advice on how to tackle security Mastering Phoenix Framework - free online version of a guide to Phoenix with TDD Building a JSON API in Elixir with Phoenix 1.
Read more →

Friday Picks 010

Here are some things I've found useful this week or that I enjoyed: As a senior developer, how do I better mentor an intermediate developer who is struggling? - Reddit thread about mentoring (might be useful to self-reflect on your own gaps) Digital Minimalism Review: Gazing Into the Abyss - an insightful review of “Digital Minimalism” by Cal Newport NestJS Tutorial für Einsteiger - (German) - I reviewed some of the content (it will be published in English next week) A complete guide to the Node.
Read more →

Friday Picks 009

Here are some things I've found useful this week or that I enjoyed: Boilerplate Code - Starter projects in React, Vue, Python, Full-Stack - some useful boilerplates As a self taught developer, i feel like i missed out on a lot of CS theory/basics. Good curriculums to catch up with ? - some advice for self-taught devs New Node.js 12 features will see it disrupt AI, IoT and more surprising areas - the future of Node.
Read more →

React.js & Node.js App Deployment with Heroku

Read more →

Friday Picks 008

Here are some things I've found useful this week or that I enjoyed: TypeScript Weekly - a newsletter for TypeScript How YOU can use Nest to build a GraphQL API - a tutorial that walks you through building a GraphQL endpoint with CRUD functionality Forget about component lifecycles and start thinking in effects - about React Hooks Build a Todo App in React Using Hooks - simple tutorial for beginners One simple trick to optimize React re-renders - without using React.
Read more →

Weekly Progress Report 26 2019

Nest.js I'm still smitten with Nest.js, a Node.js framework with TypeScript support. Here are some resources to get started with Nest.js. Vim vs. VS Code I'm giving VS Code another chance. So far, I'm not amused. I'm already too accustomed to my VIM workflow , and it's a hassle to set up all my preferred key mappings. Some plugins offer excellent language support out of the box (e.
Read more →

Learn NestJS

Currently, I'm working through the excellent Udemy Course: NestJS - Zero to Hero by Ariel Weinberger. There are still some coupons to get a discount for this course. I'm still excited about NestJS as it seems to be an excellent way to develop a Node.js/Express.js application with TypeScript and Domain-Driven Design. The learning curve is steep if you are new to TypeScript and SOLID principles. But the author does a good job holding your hand and guiding you through coding the application.
Read more →

NestJS Is Fun

I'm learning about TypeScript and NestJS right now. There's an excellent course on Udemy by Ariel Weinberger. It shows how to develop a CRUD API. If you want to get a sense on how NestJS looks like, take a peek at this article: Creating your first Node.js REST API with Nest and Typescript. NestJS seems quite opinionated, but in a good way. I like how it forces me to use a certain architecture.
Read more →

Blown Away by NestJS

I just finished a Serverless React with AWS Amplify - The Complete Guide by Reed Barger today. I learned a lot about AWS and serverless functions. But now it's time for something different! What about NestJS? Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with and fully supports TypeScript (yet still enables developers to code in pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
Read more →