🧪 Quick NodeJS Sandbox provides a template to run or test simple Node.js scripts.
MIT License
Quick NodeJS Sandbox provides a template to run or test simple Node.js scripts. (Require Node 14 or higher)
Tue Jan 31 2023 09:03:30 GMT+0900 (Korean Standard Time)
==================================================
⠋ Main function is running...
Hello, World!
✔ Done!
==================================================
50.02708297967911 ms
$ npm init nodesand
Before you begin, you need to install the dependent packages.
$ npm i
Source files of node scripts (dev, once, watch) are located in src/node/index.js
. When all the actions are done, we call next()
to end execution.
Run the script once with the following command:
$ npm run once
or
$ npm run dev
Run whenever the script file changes with the following command:
$ npm run watch
Changes in html files as well as node scripts can be displayed immediately in a web browser.
Source files of html files are located in src/www/index.html
.
To serve a static html file, run the following command:
$ npm run serve
or
$ npm run www
Now you can try opening the html file with http://localhost:3000
. Any changes will be updated immediately. (requires refresh)
Copyright © 2021-2024 Jooy2 <[email protected]> Released under the MIT license.