This is a simple tutorial aimed at showing you how to get a simple Node.js, Next.js and React App up and running with Docker on your local machine. It is aimed at beginner web developers looking to start a web project.
After following this tutorial, we should have a React + Next.js frontend application and it pulls data from a Node.js backend application.
The prerequisites to complete this tutorial are git, Docker and Docker-Compose. These links should take you to the installation page for each software.
We’ve provided a simple application for you to clone at the link below. Simply use git clone https://github.com/EMChamp/simple-nodejs-react-docker-app to clone the repo to your local machine.
Here is what the directory layout should look like. It isn’t important to understand every file, just check that you have a client directory, server directory, and docker-compose.yml in your directory.