A dummy web server using NodeJS | Deployed to Heroku
Traversy Media Crash Course series (more)
git clone git@github.com:tanwinn/nodeJS_dummy.git
npm install
nodemon index.js
- Has one thread & one event loop
- Is asynchronous: uses callbacks
- Is good with any task that is not CPU-intensive
- Install 3rd party package manager (frameworks, libraries, & tools)
- Packages are stored in
node_modules
- Dependencies listed in
package.json
- npm scripts can run certain tasks, such as run a server.
- Node core modules (path, fs, http, etc.)
- 3rd party modules/packages installed via npm
- Build your own modules = files that have an export
module.export = <class_name>;
npm run <the_text>
nodemon constantly observe the change during the development process, so the server doesn't have to be canceled and restarted every time the code is altered