docker-typescript-debug
docker-typescript-debug copied to clipboard
🐞 Example for Debugging Node.js + Typescript Running inside Docker Containers with Hot Reload
Docker Typescript Debugging
Example for Debugging Node.js + Typescript Running inside Docker Containers with Hot Reload
Watch the YouTube Tutorial
Features
- Node.js + TypeScript app
- Runs in Docker container
- With hot reload
- Ability to debug with VSCode
- Multiple applications
- A shared library
Usage
Recommended OS: Linux
Requirements: Yarn, Docker, Docker Compose
Setup
yarn install
Development
make devoryarn dev(Start development backend services, http://localhost:3000)Ctrl+F5(Start debugging and choose which container to debug)
Codebase
app1.tssimple Node.js serverapp2.tsanother simple Node.js server
Important files
docker-compose.ymlbackend development environmentpackage.jsoncontains nodemon configuration for hot reload.vscode/launch.jsonlaunch configuration for debuggers
Credits
Icons made by Freepik from www.flaticon.com