Deploying with Docker and Docker Compose on a VPS
Package a React frontend and a Node.js API into small Docker images, run them with Docker Compose next to PostgreSQL, and put Nginx with HTTPS in front.
DevOpsDockerNode.jsReactDeployment
Read more →Technical articles on React, Next.js, TypeScript and backend development, with code examples.
Package a React frontend and a Node.js API into small Docker images, run them with Docker Compose next to PostgreSQL, and put Nginx with HTTPS in front.
Install Node.js with nvm, serve a React build with Nginx, keep an Express API alive with PM2 and add free HTTPS with Let's Encrypt.
The first 30 minutes on a new server: a sudo user, SSH keys, a firewall, automatic security updates and a few habits that keep it safe.