Skip to content

This is node learning demo. It has covered all basics of node.

Notifications You must be signed in to change notification settings

droiddevgeeks/NodeLearning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeLearning

This project covers all basic topics of nodejs framework. ExpressJs Routes MiddleWare Call Chaining ErrorHandling Ejs HTML Page rendering MongoDb and Connection and CRUD operation NodeMailer WebCrawler

############################### Start ########################################### How to start project:

Install latest version fo node sudo apt-get install nodejs-legacy

Install latest version fo node package manager sudo apt-get install npm

Clone repo https://github.com/droiddevgeeks/NodeLearning.git

  1. npm install cmd to install all required dependencies
  2. node app.js

This will start server on localhost:5000/

##############################################################################

############ Web Crawler ####################################

  1. localhost:5000/webcrawl/ this will hit website, parse html and mine http urls and store all url in db

  2. localhost:5000/weburls GET Api , will give all fetch url from database.

Another Example of web crawling

  1. localhost:5000/rssfeed/ this will hit website, parse html and mine http urls and store all url in db

  2. localhost:5000/posts GET Api , will give all fetch url from database.

###########################################################

######################### Sign In and Sign Up ##################################

  1. localhost:5000/user/alluser/:count GET
  2. localhost:5000/user/signIn POST API
  3. localhost:5000/user/myInfo POST API
  4. localhost:5000/user/signUp POST API

########################################################

################################ HTML Rendering#################################

EJS view engine

  1. localhost:5000/policy
  2. localhost:5000/rules ###############################################################################