Giter Club home page Giter Club logo

backend-express-ejs-mongodb's Introduction

As javasript can run in the browser using v8 engine which is written in cpp but now to add more dynamicity to web we want to run this in server side also which can be done using nodejs which comprises v8 engine and much more than that.

But by this we loose access to some feature like dom model.


Running structure

nodejs -> javascript -> cpp (assembly language) -> machine language

Role of node is that we want run javascript on server side and handle the request in server side.

Install nodejs then type "node" to use.

To run some file do write node fileName

npm

npm is used package manager to do thing more easily like refreshing with nodemon.

for package.json = use npm init (if running/using third party dependenies)

we can also install the package globally even in the all projects by npm install -g nodemon (-g for global use)

  1. can use i for install
  2. --save used to add in package.json but now it is deafult

As in the server.js of module-5 (above) the code is being a lot messy (not now but if then do use more routing.)

So, expess is framework that help to easily manage the request, server-side logic, and responses in much optimum way.

There is No need to use express it can be done with raw node, but it allows clean code and more good features.

Author

NOTE

  • May be code could not run so please take care of added comments while learning!

backend-express-ejs-mongodb's People

Contributors

anshumanshukla46 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.