Welcome to the Docker Node.js Demo repository for my YouTube course! This repository contains the code for a comprehensive course on Docker and Docker Compose, focusing on building and managing microservices with Node.js. The course is divided into four parts, each available on a separate branch.
- Prerequisites
- Getting Started
- How to Get Part-1 Starter Code
- How to Get Part-2 Starter Code
- How to Get Part-3 Starter Code
- How to Get Part-4 Starter Code
- Contributing
- License
Before you begin, make sure you have the following installed:
- Node.js: Ensure you have the latest version of Node.js installed. You can download it from nodejs.org.
- IDE: Preferably Visual Studio Code, which you can download from code.visualstudio.com.
- Terminal: A Unix-based terminal (e.g., macOS Terminal, Git Bash, or WSL for Windows users).
First, clone the repository to your local machine:
git clone [email protected]:chrisblakely01/docker-nodejs-demo.git
cd docker-nodejs-demo
To get the starter code for Part-1, switch to the part-1
branch:
git checkout part-1
npm i
This branch contains the initial setup for the course, including creating Docker images and containers.
To get the starter code for Part-2, switch to the part-2
branch:
git checkout part-2
npm i
This branch builds on Part-1 and covers using Docker Compose to manage multiple containers.
To get the starter code for Part-3, switch to the part-3
branch:
git checkout part-3
npm i
In this part, you will learn about running Nginx and setting up networking between containers.
To get the starter code for Part-4, switch to the part-4
branch:
git checkout part-4
npm i
This final part includes managing databases within Docker and advanced networking concepts.
Feel free to open issues or submit pull requests if you find any bugs or have suggestions for improvements.
This project is licensed under the MIT License.
By following the instructions in each section, you can easily switch between the different parts of the course and access the corresponding code. Happy coding!