Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imranhsayed/node-playground
:globe_with_meridians: A demo app for node
https://github.com/imranhsayed/node-playground
chrome-devtools debugging file-system javascript node nodejs npm server
Last synced: about 2 months ago
JSON representation
:globe_with_meridians: A demo app for node
- Host: GitHub
- URL: https://github.com/imranhsayed/node-playground
- Owner: imranhsayed
- Created: 2019-05-16T10:30:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-20T12:02:10.000Z (over 5 years ago)
- Last Synced: 2024-10-20T05:32:13.230Z (3 months ago)
- Topics: chrome-devtools, debugging, file-system, javascript, node, nodejs, npm, server
- Language: JavaScript
- Homepage:
- Size: 1.44 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node playground
## Description :clipboard:
> A demo app for node## Chrome Developer tool for Node Demo :video_camera:
![](debugger.gif)## Branches Information
1. [event-emitter](https://github.com/imranhsayed/node-playground/tree/event-emitter) Example for Node Events( using http )
2. [file-uploads](https://github.com/imranhsayed/node-playground/tree/file-uploads) Example for File Uploads in node using Formidable module( using http )
3. [send-email](https://github.com/imranhsayed/node-playground/tree/send-email) Example for sending email using nodemailer package ( using http )
4. [sendfile-express](https://github.com/imranhsayed/node-playground/tree/sendfile-express) Send an index.html file using res.sendFile ( with express ) to port 8080 where you can view it in the browser on `localhost://8080`.
5. [path-example](https://github.com/imranhsayed/node-playground/tree/path-example) Example for using the path module that comes shipped with node.
6. [chrome-debugger](https://github.com/imranhsayed/node-playground/tree/chrome-debugger) Example for using Chrome Debugger* Add a `debugger` in your code.
* Run your file using command `node --inspect filename.js`
* Open Chrome Tool in browser by going on `chrome://inspect/`
* Click on Target > Inspect
* Now run your server at `http://localhost:5000` in browser.
* It will hit the debugger and open the chrome developer tool . Then you can see the values of different variables and debug.## Common Commands :computer:
1. `npm run dev` runs node on port 8080 by running server.js file
2. `npm run dev:watch` runs node on port 8080 in watch mode by running server.js file