Skip to content

Commit b11f7a5

Browse files
[feat] Added new documentation for Node.js guide (#23607)
This PR introduces a comprehensive, language-specific guide for containerizing Node.js applications using Docker, aimed at helping developers streamline development, testing, and deployment workflows. It includes hands-on steps and real-world examples to configure CI/CD pipelines using GitHub Actions, following modern DevOps best practices. **What’s Included** - Step-by-step instructions to containerize Node.js applications using Docker. - Configuration for a local development environment inside containers with automatic reloads. - Guidance on running unit and integration tests within Docker containers. - Full CI/CD pipeline setup using GitHub Actions for automated builds, tests, and deployments. - Deployment instructions for a local Kubernetes cluster to validate production readiness. **Credits** [Kristiyan Velkov](https://www.linkedin.com/in/kristiyanvelkov/), Docker Captain. ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [x] Technical review - [x] Editorial review - [ ] Product review
1 parent d211ce0 commit b11f7a5

File tree

7 files changed

+2258
-845
lines changed

7 files changed

+2258
-845
lines changed

content/guides/nodejs/_index.md

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,41 @@ params:
1515
time: 20 minutes
1616
---
1717

18-
The Node.js language-specific guide teaches you how to containerize a Node.js application using Docker. In this guide, you’ll learn how to:
18+
[Node.js](https://nodejs.org/en) is a JavaScript runtime for building web applications. This guide shows you how to containerize a TypeScript Node.js application with a React frontend and PostgreSQL database.
1919

20-
- Containerize and run a Node.js application
21-
- Set up a local environment to develop a Node.js application using containers
22-
- Run tests for a Node.js application using containers
23-
- Configure a CI/CD pipeline for a containerized Node.js application using GitHub Actions
24-
- Deploy your containerized Node.js application locally to Kubernetes to test and debug your deployment
20+
The sample application is a modern full-stack Todo application featuring:
2521

26-
Start by containerizing an existing Node.js application.
22+
- **Backend**: Express.js with TypeScript, PostgreSQL database, and RESTful API
23+
- **Frontend**: React.js with Vite and Tailwind CSS 4
24+
25+
26+
> **Acknowledgment**
27+
>
28+
> Docker extends its sincere gratitude to [Kristiyan Velkov](https://www.linkedin.com/in/kristiyan-velkov-763130b3/) for authoring this guide. As a Docker Captain and experienced Full-stack engineer, his expertise in Docker, DevOps, and modern web development has made this resource invaluable for the community, helping developers navigate and optimize their Docker workflows.
29+
30+
---
31+
32+
## What will you learn?
33+
34+
In this guide, you will learn how to:
35+
36+
- Containerize and run a Node.js application using Docker.
37+
- Run tests inside a Docker container.
38+
- Set up a development container environment.
39+
- Configure GitHub Actions for CI/CD with Docker.
40+
- Deploy your Dockerized Node.js app to Kubernetes.
41+
42+
To begin, you’ll start by containerizing an existing Node.js application.
43+
44+
---
45+
46+
## Prerequisites
47+
48+
Before you begin, make sure you're familiar with the following:
49+
50+
- Basic understanding of [JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript) and [TypeScript](https://www.typescriptlang.org/).
51+
- Basic knowledge of [Node.js](https://nodejs.org/en), [npm](https://docs.npmjs.com/about-npm), and [React](https://react.dev/) for modern web development.
52+
- Understanding of Docker concepts such as images, containers, and Dockerfiles. If you're new to Docker, start with the [Docker basics](/get-started/docker-concepts/the-basics/what-is-a-container.md) guide.
53+
- Familiarity with [Express.js](https://expressjs.com/) for backend API development.
54+
55+
Once you've completed the Node.js getting started modules, you’ll be ready to containerize your own Node.js application using the examples and instructions provided in this guide.

content/guides/nodejs/configure-ci-cd.md

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)