An open API service indexing awesome lists of open source software.

https://github.com/simobin/portable-nodejs-workspace

This repository serves as a template for quickly setting up a portable Node.js development environment for vs code
https://github.com/simobin/portable-nodejs-workspace

node node-js node-module npm portable portable-workspace vscode

Last synced: about 2 months ago
JSON representation

This repository serves as a template for quickly setting up a portable Node.js development environment for vs code

Awesome Lists containing this project

README

          

Template Repository

A Portable Node.js workspace

## Introduction

This repository serves as a template for quickly setting up a portable Node.js development environment. Whether you're starting a new project or need a clean, consistent development environment across multiple machines, this template will help you get up and running in no time.

### Features

- Pre-configured Node.js environment
- Portable setup for use on **windows** machines
- Easy-to-follow setup instructions
- Other workspace settings:
- PHP server
- PHP
- prettier
- cSpell checker
- liveserver
- live sass compiler

[![Version](https://img.shields.io/badge/NODE%20Version-20.6.1-blue.svg)](https://your-project-url)
[![Version](https://img.shields.io/badge/npm%20Version-10.2.0-blue.svg)](https://your-project-url)

**ON** _[15/10/2023](https://github.com/siMobin/Portable-NodeJS-Workspace)_...

## Getting Started

Follow these steps to set up your portable Node.js development environment using this template repository:

### Prerequisites

- **Git:** Install `Git` on your system if it's not already installed. You can download Git from _[git-scm.com](https://git-scm.com/)_.

- **Visual Studio Code:** Install `Visual Studio Code` on your system if it's not already installed. You can download it from _[code.visualstudio.com](https://code.visualstudio.com/download)_.

> [!IMPORTANT]
> This portable workspace works on **vs code** only.

### Cloning the Repository

Clone this repository to your local machine:

```shell
git clone git@github.com:siMobin/Portable-NodeJS-Workspace.git

git lfs install

git lfs pull
```

> [!WARNING]
> You may need a `ssh` key for that. You can try `HTTPS` then.

> [!IMPORTANT]
> Delete `.git` folder before create a new repository using **_[this](https://github.com/siMobin/Portable-NodeJS-Workspace)_** template.

OR

Use to create an instant repository.

##

---

### Setting Up Your Project

check portable environment variable for **Node js** in `.vscode\settings.json`

```json
"terminal.integrated.env.windows": {
"PATH": "${env:PATH};${workspaceFolder}\\node"
},
```

1. Change the working directory to your project folder:

2. Install project dependencies:

```shell
npm init
npm install `xxx` -save-dev
```

> [!IMPORTANT]
> Before start your project check/setup `.gitignore` file.

##

### **Extra**

**update node**

```shell
nvm install x.x.x
```

**update npm**

```shell
npm update -g
```

_OR_

```shell
npm install npm@latest -g
```

**Clear npm cache**

```shell
npm cache clean --force
```