|
| 1 | +## NodeJS Commands |
| 2 | + |
| 3 | +|Sl.No.| Commands | Description | |
| 4 | +|------|----------------------------|-------------------------------| |
| 5 | +| 01. |npm install node@14.8.0 | Install node specific version | |
| 6 | +| 02. |npm init | Creates package.json | |
| 7 | +| 03. |npm install | Install the dependencies in the local node_modules folder | |
| 8 | +| 04. |bower install | package manager | |
| 9 | +| 05. |npm install -g gulp | | |
| 10 | +| 06. |npm install -g bower | | |
| 11 | +| 07. |npm install -g live-server | | |
| 12 | +| 08. |npm install -g grunt-cli | | |
| 13 | +| 09. |live-server | Start NodeJs Server | |
| 14 | +| 10. |npm install -S express | | |
| 15 | +| 11. |npm install -S body-parser | | |
| 16 | +| 12. |npm start | | |
| 17 | +| 13. |gulp develop | Server Start | |
| 18 | +| 14. |gulp help | gulp Help | |
| 19 | +| 15. |gulp build | Clean and minification into single file | |
| 20 | +| 16. |gulp serve | | |
| 21 | +| 17. |gulp watch | | |
| 22 | +| 18. |gulp test:tdd | Unit Testing | |
| 23 | +| 19. |gem install sass | | |
| 24 | +| 20. |sass -? | Help | |
| 25 | +| 21. |sass --update var_styles.scss| | |
| 26 | +| 22. |sass --watch dir:dir | Watch for changes | |
| 27 | +| 23. |npm install -g webpack | Istall webpack globally | |
| 28 | +| 24. |webpack | Run | |
| 29 | +| 25. |npm -l | Display full usage info | |
| 30 | +| 26. |ruby -v | Ruby Version | |
| 31 | +| 27. |node -v | Node Version | |
| 32 | +| 28. |npm -v | Node Package Manager Version | |
| 33 | +| 29. |tsc -v | TypeScript Version | |
| 34 | +| 30. |git version | Git Version | |
| 35 | +| 31. |webpack -v | Webpack Version | |
| 36 | +| 32. |npm install mongoose | | |
| 37 | +| 33. |npm config rm proxy | | |
| 38 | +| 34. |npm config rm https-proxy | | |
| 39 | +| 35. |npm config list | | |
| 40 | +| 36. |npm install firebase angularfire2 --save | |
| 41 | +| 37. |npm install git+https://github.com/angular/angularfire2.git| |
| 42 | +| 38. |npm install firebase angularfire2@next --save | |
| 43 | +| 39. |npm uninstall -g angular-cli | | |
| 44 | +| 40. |npm cache clean | | |
| 45 | +| 41. |npm install -g typescript | | |
| 46 | +| 42. |npm install --save rxjs@5.5.2| Reactive Extensions Library for JavaScript | |
| 47 | +| 43. |npm install express-session | | |
| 48 | +| 44. |node app | Run app.js file on node server | |
| 49 | +| 45. |npm install -g jshint | | |
| 50 | +| 46. |npm install express --save | Install express into local project | |
| 51 | +| 47. |npm install cors --save | Cross Origin Resource Sharing --> It allows open api to accessibale by other domains | |
| 52 | +| 48. |npm install body-parser --save | | |
| 53 | +| 49. |npm install underscore --save | | |
| 54 | +| 50. |npm remove underscore --save | | |
| 55 | +| 51. |npm install ws --save | Install WebSocket | |
| 56 | +| 52. |npm install socket.io --save | Used for creating websocket when browser doestn't support websocket | |
| 57 | +| 53. |npm install -g mocha | JavaScript Unit Testing framework | |
| 58 | +| 54. |mocha | To run mocha test | |
| 59 | +| 55. |npm install nock --save-dev | Use to create mock server for testing | |
| 60 | +| 56. |npm install rewire --save-dev | Use for Injecting dependencies | |
| 61 | +| 57. |npm install sinon --save-dev | Use to create mock object for test | |
| 62 | +| 58. |npm install -g istanbul | JavaScript test coverage tool | |
| 63 | +| 59. |istanbul cover _mocha | Run istanbul report | |
| 64 | +| 60. |npm install supertest --save-dev| | |
| 65 | +| 61. |npm install cheerio --save-dev | | |
| 66 | +| 62. |npm install grunt-contib-jshint --save-dev| |
| 67 | +| 63. |npm install grunt-contrib-less --save-dev| |
| 68 | +| 64. |grunt css | Convert ".less" file into corresponding ".css" files | |
| 69 | +| 65. |npm install grunt-autoprefixer --save-dev| Add code for browser dependencies in css | |
| 70 | +| 66. |npm install grunt-browserify --save-dev | Create bundle.js combining all files together | |
| 71 | +| 67. |npm install grunt-contrib-watch --save-dev| | |
| 72 | +| 68. |grunt watch | | |
| 73 | +| 69. |ng add @angular/material | | |
| 74 | +| 70. |npm install -g live-server | | |
| 75 | +| 71. |npm link | create a symlink in the global folder | |
| 76 | +| 72. |npm link redis | link-install the package | |
0 commit comments