node js glimpse | nodejs tutorials

 Official NodeJS docs - https://nodejs.org/en/docs/


NodeJS download for windows - https://nodejs.org/en/download/

(simply click on downloaded file and it will install nodejs)


NodeJS for Ubuntu - https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04

(it is best to use this process) - only use option 2, if you use option 1 (apt-get), it will install old version


NodeJS for mac - https://phoenixnap.com/kb/install-npm-mac

Install with homebrew


NVM installation for NodeJS - https://www.vultr.com/docs/install-nvm-and-node-js-on-ubuntu-20-04/


NVM for Mac - https://tecadmin.net/install-nvm-macos-with-homebrew/


NVM for windows - https://github.com/coreybutler/nvm-windows


NVM useful commands -


  1. `nvm  - -version` to check version 

  2. `nvm list` to list all the available nvm versions

  3. `nvm use 15.0` to use a specific version of nodejs

  4. `nvm install 15.0` to install a specific version of nodejs


Great books for NodeJS - 


  1. https://booksoncode.com/articles/best-node-and-express-books

  2. https://www.netguru.com/blog/node-js-books


Advanced Nodejs books - 

  1. https://amzn.to/3pgXveC

  2. https://amzn.to/3C4AeUZ

  3. https://amzn.to/3vZrcVh




Some great articles to learn NodeJS -


  1. https://medium.com/free-code-camp/what-exactly-is-node-js-ae36e97449f5

  2. https://medium.com/edge-coders/node-js-streams-everything-you-need-to-know-c9141306be93

  3. https://medium.com/dailyjs/how-i-automated-my-job-with-node-js-94bf4e423017

  4. https://medium.com/edge-coders/before-you-bury-yourself-in-packages-learn-the-node-js-runtime-itself-f9031fbd8b69

  5. https://yonigoldberg.medium.com/19-ways-to-become-a-better-node-js-developer-in-2019-ffd3a8fbfe38



Some great youtube videos for Nodejs -


  1. https://www.youtube.com/watch?v=TlB_eWDSMt4

  2. https://www.youtube.com/watch?v=ENrzD9HAZK4

  3. https://www.youtube.com/watch?v=sJ7nDNNpOMA

  4. https://www.youtube.com/watch?v=Oe421EPjeBE&t=14608s

  5. https://www.youtube.com/playlist?list=PL4cUxeGkcC9jsz4LDYc6kv3ymONOKxwBU


Some great projects to implement - 


  1. https://trevorlasn.medium.com/how-to-setup-a-powerful-api-with-nodejs-graphql-mongodb-hapi-and-swagger-e251ac189649

  2. https://medium.com/free-code-camp/securing-node-js-restful-apis-with-json-web-tokens-9f811a92bb52

  3. https://medium.com/free-code-camp/building-a-simple-node-js-api-in-under-30-minutes-a07ea9e390d2

  4. https://medium.com/codeburst/build-simple-medium-com-on-node-js-and-react-js-a278c5192f47?source=search_post---------12----------------------------

  5. https://medium.com/@atingenkay/creating-a-todo-app-with-node-js-express-8fa51f39b16f



Bootcamp - 


NodeJS starter kit [ Github ] -> https://github.com/AkhilSharma90/nodejs-starter


  1. Star it

  2. Clone it

  3. `npm install’

  4. `npm start` - will not work right now as don’t have an index file



NodeJS starter kit on Gitpod virtual environment -> 

https://gitpod.io#snapshot/964c6d65-bce5-4c05-a1a9-39712109c3b4 

(Note :- This is a gitpod - a virtual environment to run code. When you click on this link, the project will be copied to your gitpod account, so make sure you first create a gitpod account so you can access this later.)

Opening the project, you will see an error message, that’s because there is no server.js file right now. We will build it together.


========================================================================


COMPLETED PROJECT BELOW -


NodeJS CRUD APP [Github] -> https://github.com/AkhilSharma90/node-crud-project


NodeJS CRUD APP on Gitpod virtual environment -> 

https://gitpod.io#snapshot/8569488b-cb70-431c-9fc4-41b468d18f09 


POSTMAN Collection - https://documenter.getpostman.com/view/11345637/2s8YCbma7L


You have to run this in postman



Project board briefing - > https://whimsical.com/nodejs-masterclass-scaler-SJpzkrCwPj8tqWZLGNA7sj


======================================================================


EXTRA PROJECT, JUST FOR LEARNING PURPOSES - 


Github final ecommerce project ->

https://github.com/AkhilSharma90/node-ecommerce-V2/tree/master


javascript nuggets basics
https://www.youtube.com/watch?v=80KX6aD9R7M&list=PLnHJACx3NwAfRUcuKaYhZ6T5NRIpzgNGJ
https://www.johnsmilga.com/

https://github.com/john-smilga/VS-CODE-SETUP

https://github.com/john-smilga/node-express-course

Helpful Linux commands


  1. Stop server with port -> ctrl+c

  2. Stop server immediately, sometimes leaving the port open -> ctrl+z

  3. Kill processes on port - kill -9 $(lsof -t -i:8080)


Accessing a port on Gitpod - 3000-yourworkspace.ws-eu45.gitpod.io



node js is a mediator between server and html
node js is a javascript environment for developing applications that willl work in browser,server, terminal,desktop
popular javascript libraries and frameworks

jquery,angular,react

library is a collection of functions that extend the functionality of javascript
jquer,react,

framework is a collection of libraries that extend an applications environment
angularjs,backbone,js,ember.js

envirnorment is the server environment that executes the applications code
nodejs,python,ruby

nodejs is just a javascript
it allows javascript to be used for both froontend and backend

front end - client side
html, css, javascript

backend server side
java,php, ruby,nodejs


text editors
visual studio
atom
karkenjs.com

nodejs uses an eventdriven,non-blocking read

nodejs even in embeded sstem
node faster than php

node customers
linkedin,groupon,netflix,ebay,paypal

if compre with otherbackend
double the requests pers second
35% decrease in the avaerage response time

disadvantages

node js is not very strick languangue and lacks optimal data storage at this tume

No comments:

Post a Comment

Event listening in react

 How we can listen to som eevents some envents fire like click or automatically user enters into input button , that is event on word type i...