Skip to content

foxfabi/nodeDEV

Repository files navigation

Node.js Development Environment

  • Node.js with nodemon, eslint, dotenv, mocha, serve, .... for development.
  • PostgreSQL Database
  • Adminer for database management

The Visual Studio Code Remote - Containers extension lets you use a Docker container as a full-featured development environment. It allows you to open any folder or repository inside a container and take advantage of Visual Studio Code's full feature set. The .devcontainer.json file tells VS Code how to access (or create) the development container with well-defined tool and runtime stack.

The Visual Studio Code Remote - SSH extension lets you use any remote machine with a SSH server as your development environment.

Since everything that has to do with the stack, only runs in the container, you have to put the commands into the corresponding container.

The local folder code is mapped to /opt/nodeDEV/code in the container

After cloning this repository you should rename .env.example to .env and adapt as needed

Installed npm modules

Note: This node modules are installed globally.

  • nodemon: a tool that helps develop node.js based applications by automatically restarting the node application when file changes in the directory are detected.
  • mocha: Simple, flexible, fun JavaScript test framework for Node.js
  • dotenv: a module that loads environment variables from a .env file into process.env.
  • commitizen: fill out any required commit fields at commit time.
  • standard-changelog: opinionated approach to CHANGELOG generation.
  • eslint a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.
  • db-migrate db-migrate-pg: Database migration framework for node.js.

Installed vscode extensions

  • npm: npm support for VS Code.
  • npm Intellisense: Visual Studio Code plugin that autocompletes npm modules in import statements.
  • OpenAPI Preview: Preview OpenAPI Docs
  • REST Client: REST Client for Visual Studio Code.
  • Swagger Viewer: Swagger Viewer lets you preview and validate Swagger 2.0 and OpenAPI files as you type in Visual Studio Code.
  • Code Runner: Run code snippet or code file for multiple languages.
  • DotENV: Support for dotenv file syntax.
  • Error Lens: Improve highlighting of errors, warnings and other language diagnostics.
  • ESLint: Integrates ESLint JavaScript into VS Code.
  • Git Graph: View a Git Graph of your repository, and perform Git actions from the graph.
  • gitignore: Add file to .gitignore.
  • Path Intellisense: Visual Studio Code plugin that autocompletes filenames.
  • Resource Monitor: Displays current CPU stats, memory/disk consumption, and battery percentage remaining.
  • Prettier - Code formatter: Code formatter using prettier
  • Prettier ESLint: Format JavaScript and TypeScript code using the prettier-eslint