Skip to content

A minimal DevContainer setup for running and experimenting with JavaScript code in a consistent, containerized environment.

Notifications You must be signed in to change notification settings

glenjarvis/js-workspace

Repository files navigation

JavaScript DevContainer Workspace

This repository provides a minimal DevContainer setup for running and experimenting with JavaScript code in a consistent, containerized environment.

Purpose

This is a lightweight JavaScript-only runtime environment. It's ideal for:

  • Testing code snippets and small experiments.
  • Following along with JavaScript tutorials.
  • Maintaining a clean and repeatable development setup.

It is not intended for general-purpose JavaScript projects or for use with frontend frameworks or full-stack tooling.

What is a DevContainer?

A DevContainer lets you describe your development environment in code and run it in a Docker container. When used with editors like Visual Studio Code, it ensures everyone has the same tools, settings and runtime, with no need to manually install dependencies on your machine.

Getting Started

  1. Clone this repository.
  2. Open the project in Visual Studio Code.
  3. When prompted, reopen in a DevContainer.
  4. Start coding in app.js or run node app.js in the DevContainer terminal to see the environment in action.

Running Test Code:

node app.js

Lint all JS files

npx eslint .

Format with Prettier

npx prettier --write .

Included

  • Node.js 18 environment
  • ESLint with recommended defaults
  • DevContainer config for VS Code

License

This project is released under the CC0 1.0 license. You are free to use, modify, and distribute it without restriction.

About

A minimal DevContainer setup for running and experimenting with JavaScript code in a consistent, containerized environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published