Skip to content

siMobin/Portable-NodeJS-Workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 Version

ON 15/10/2023...

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.

  • Visual Studio Code: Install Visual Studio Code on your system if it's not already installed. You can download it from code.visualstudio.com.

Important

This portable workspace works on vs code only.

Cloning the Repository

Clone this repository to your local machine:

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 template.

OR

Use to create an instant repository.


Setting Up Your Project

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

  "terminal.integrated.env.windows": {
    "PATH": "${env:PATH};${workspaceFolder}\\node"
  },
  1. Change the working directory to your project folder:

  2. Install project dependencies:

npm init
npm install `xxx` -save-dev

Important

Before start your project check/setup .gitignore file.

Extra

update node

nvm install x.x.x

update npm

npm update -g

OR

npm install npm@latest -g

Clear npm cache

npm cache clean --force

About

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

Topics

Resources

Stars

Watchers

Forks

Contributors