https://github.com/hritik5102/node-js
Node is runtime environment of javascript and node-js is not programming language and not framework build on the v8 javascript engine.
https://github.com/hritik5102/node-js
express-js http javascript node-js node-module nodejs nodejs-server nodemon
Last synced: 8 months ago
JSON representation
Node is runtime environment of javascript and node-js is not programming language and not framework build on the v8 javascript engine.
- Host: GitHub
- URL: https://github.com/hritik5102/node-js
- Owner: hritik5102
- Created: 2019-10-27T06:43:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-03T07:47:49.000Z (over 6 years ago)
- Last Synced: 2025-03-30T22:29:41.242Z (about 1 year ago)
- Topics: express-js, http, javascript, node-js, node-module, nodejs, nodejs-server, nodemon
- Language: JavaScript
- Homepage:
- Size: 1.02 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Node-js
> ### what is node js ?
node is runtime enviroment of javascript and nodejs is not programming language and not framework build on the v8 javascript engine
> ### Working
node uses a single thread to execute multiple requests asynchronously supports concurrency via events and callbacks.
> ### why to use Node-js ?
* event driven , non blocking i/o model
* great for prototyping and agile development
* superfast and high scalable
* javascript everywhere
* cleaner and more consistent codebase
* large ecosystem of open source libs
> ### Best type of projects for Node-js
* RestApi and microprocess
* real-time services (chat, live updates)
* CRUD APPS - blogs, shopping carts, social network
* tool and utilities
> ### Basic view
1. install a 3rd package (frameworks, library, tools)
2. package get stored in node_modules
3. all dependencies are listed in package.json file
4. NPM scripts can be created to run certain to run certain task such as a run server
#### Install [Node.js](http://nodejs.org/) (4.0.0 or later)
1. Install dependencies
```sh
$ npm install
```
2. Generate a package.json
```sh
$ npm init
```
3. Install a package locally
```sh
$ npm install express
```
4. Install a package globally
```sh
$ npm install -g nodemon
```
5. To run a file
```sh
$ npm filename
```
> ### Node module system
1. Open system
2. File system
3. Events
4. Http