Skip to content

Instantly share code, notes, and snippets.

@svikas641
Created May 21, 2020 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svikas641/509d27e6a623d7bd15f633f056272474 to your computer and use it in GitHub Desktop.
Save svikas641/509d27e6a623d7bd15f633f056272474 to your computer and use it in GitHub Desktop.
Let’s convert a single file folder to node format.
1)npm init //it will create package.json(it will ask questions, keep pressing enter)
2)npm install http-server . //it will generate node_modules folder
3)node ./node_modules/http-server/bin/http-server //this command will start the server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment