This repository contains files required to quickly setup an environment for Vanilla JS interviews requiring only HTML, CSS and JS coding. This will be useful for JS machine coding interviews. The environment is set up using Visual Studio Code's Remote Containers feature, which allows you to develop inside a containerized environment. This ensures that you have a consistent setup regardless of your local machine's configuration. The environment can be discarded after the interview, making it a clean and efficient solution for interview preparation.
This repository contains:
- .devcontainer/devcontainer.json with the below extensions installed:
esbenp.prettier-vscodefor code formattingdbaeumer.vscode-eslintfor lintingms-vscode.vscode-typescript-nextfor latest TypeScript features and support
Dockerfilewith the following tools installed:nodefor running JavaScript code and installing dependenciesnpmfor managing JavaScript packagesviteinstalled globaly for quick setup of a vanilla JS project with hot reload
To use this environment, you need to have the following installed on your local machine:
- Docker for containerization
- Visual Studio Code for development
- Remote - Containers extension for Visual Studio Code to work with the containerized environment
- Clone this repository to your local machine.
- Open the cloned repository in Visual Studio Code.
- When prompted, click "Reopen in Container" to start the containerized environment.
- Once the container is up and running, you can use the terminal inside Visual Studio Code to run commands and set up your vanilla JS project. For example, you can use
viteto create a new project with the following command:npm create vite@latest my-vanilla-js-project -- --template vanilla