In this video I will create a development environment where I will be able to run a client / server / database application in a single monorepo, so that I can develop and debug efficiently on a local computer. To achieve that I will use Docker containers and Docker Compose to create a container-based environment that will run the PostgreSQL database, the Node.js backend api provider (the server) and the Next.js application (the client). The client and the server will be included in the monorepo as git submodules, so that they remain separate software packages.
What you'll learn:
Containerizing a Node.js Application with Docker (creating a Dockerfile)
Containerizing a PostgreSQL database
Using Docker Compose to run multiple docker containers/services
Setup a Docker Compose file for development including watchers for file changes in both the client and the server
Repository:
bw-monorepo: https://github.com/nikelaz/bw-monorepo
bw-backend-service: https://github.com/nikelaz/bw-backend...
bw-web-client: https://github.com/nikelaz/bw-web-client
Contents:
0:00 Introduction
0:44 What are we going to build?
2:05 Containerize the Backend Service/Server
13:23 Create the Next.js Web Client Package
17:04 Creating the Monorepo
20:29 Setup the Docker Compose Services
39:41 Conclusion
Social Media:
Email: [email protected]
Twitter: / nikelaz
LinkedIn: / nikola-lazarov
#containers #docker #nodejs #development #monorepo