Skip to content

AmishFaldu/nodejs-dev-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Node.js container env

Introduction 📖

This is a minimal, secure and extensible dev container that you can use on your machine to develop node.js app.

Why should you use dev containers for building node.js apps? 🤷‍♂️

Reason you should use dev containers:

  1. Coding environment stays the same for all the team members
  2. Stop polluting local machine with installing and removing software with residuals still left. With this approach you can easily create and destroy fully fledged dev environment without polluting local machine with softwares.
  3. Less time spent on debugging because of different dev env configurations.

......and many more

How to use it? 🤔

To get started with development, you need to follow these steps:

  1. Create a repository from this template repository
  2. The node.js version dev container will use is 20.3, but if you want to use any other version of node.js modify Dockerfile with version you want. Please refer to this documentation for available versions.
  3. Start the dev environment by running this command sh setup-dev-env.sh.
  4. Attach your vscode or other IDE to dev container named nodejs-dev-env.
  5. Now start building amazing apps 🚀

NOTE - As mentioned this is a minimal dev env for node.js, so I highly recommend to customize the Dockerfile to include for e.g. tsconfig.json, eslint/prettier configs, etc for your usecase

Reference links

  1. Chainguard getting started with node.js
  2. List of chainguard os packages available for installation in docker image.

About

Template dev container env for building apps in node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published