Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building Applications with NodeJs

Building Applications with NodeJs

An introduction to what NodeJs is and building web applications with it

Ruheni Alex

October 10, 2019
Tweet

More Decks by Ruheni Alex

Other Decks in Programming

Transcript

  1. Objectives Gain familiarity with Express and how it fits in

    with Node. Gain understanding of functionality it provides. Building blocks of an Express application
  2. Prerequisites • Node.js and npm installed • General understanding of

    server-side programming • Basic JavaScript knowledge
  3. What is Node.Js? It is not a FRAMEWORK!! An open-source,

    cross-platform, runtime environment environment that allows developers to create server-side applications in JavaScript.
  4. Advantages Great performance - event-driven and scalable. Access to hundreds

    of thousands of reusable packages on NPM. Portable - available on any OS and many hosting platforms. Active third party ecosystem and developer community.
  5. Express Fast, unopinionated, minimalist framework for Node.js. Used for building

    Web Applications, APIs because of its flexibility. **Opinionated - has fewer restrictions on how things should be done.
  6. Provides methods to specify what function is called for particular

    HTTP verbs ( i.e. GET, POST, PATCH, DELETE) Provides route handlers Allows use of middleware (functions which have access to the request object) Any database mechanism is supported by Node (eg MongoDB, SQLite, PostgreSQL etc.) There are several templating engines supported i.e. Pug, Dust, Jade, Ejs etc.
  7. Resources The following resources will help you get up and

    running as well as gain a deeper understanding of Node.Js and Express framework: 1. Express official site 2. Server-side programming with JavaScript - Mozilla Developer Network 3. NodeJs download 4. Demo Repository 5. Deployed demo