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

Node JS for Architects Part 1

Node JS for Architects Part 1

An introduction to NodeJS and the basics associated with it.

Allan Chua

March 18, 2022
Tweet

More Decks by Allan Chua

Other Decks in Technology

Transcript

  1. Series of topics NodeJS Scripting 1 Frontend Engineering React 2

    API Development 3 Hosting static frontends in AWS 4 hosting APIs in AWS 5 Containers in AWS 6 Serverless APIs for AWS 7 Storing data in AWS 8
  2. Linux is recommended Any linux distro is fine But ubuntu

    is highly recommended because of its compatibility with major Ides If you are in windows, There’s a solution for that and it’s called windows subsystems for linux Macbook pro is the most loved machine by developers but its very expensive.
  3. Shell skill is a must Its almost impossible to Create

    automation pipelines and deploy NodeJS without having a decent shell skill.
  4. But how? If JS was made for browsers, how was

    it able to execute js everywhere?
  5. How v8 works It is used by nodejs to take

    javascript and execute it outside a browser. machine executable code V8 translates takes js as input
  6. Server and client delta But there’s a difference between server

    and browser code • DOM • Cookies • Document • Window • APIs related to browser window • File system • EXECUTE Shell • Web servers and clis Browser Node JS
  7. Asynchronous = Efficiency NodeJS is awesome because it enables superior

    use of compute resources in a server READ THIS GUYS: https://www.geeksforgeeks.org/why-node-js-is-a-single-threaded-language/
  8. Single Language means happy owners - Less cognitive switch -

    Faster onboarding of developers - Faster engineering
  9. Could be used to make And many more Web ApiS

    websites Artificial Intelligence
  10. Largest programming ecosystem The large ecosystem of nodejs applications can

    easily result to reduction of engineering cost Stackoverflow Sample Projects Youtube Videos Medium Articles
  11. Core Tools NVM NPM NPX We’ll view tackle this on

    frontend and api development portions
  12. NVM It’s shell-based cli tool used for managing the active

    version of nodeJs installed in your machine.
  13. NPM – Package Manager Open source Repository of packages Configuration

    like version, and type Package management Run and Manage Scripts
  14. NPM Can also refer to: The open source repository of

    javascript packages https://www.npmjs.com/
  15. If you want to try it out later after the

    session https://github.com/allanchua101/avatar-generator
  16. Homework - I would strongly suggest using dual boot and

    have ubuntu as the 2nd boot system of your pCs - If you are in windows and you love it, setup WSL - Install Node JS - Install NVM
  17. Homework 1 Create a NODE JS script that can convert

    EXCEL files to JSON and save it on the disk
  18. Homework 2 Create a NODE JS script that can convert

    JSON files to EXCEL and save it on the disk
  19. Homework 3 Create a NODE JS script that can add

    a background image to a transparent PNG file and save it on the disk
  20. Homework 4 Create a NODE JS script that generates a

    QR code for a website and save it on the disk
  21. Homework 5 Create a NODE JS script that generates a

    barcode based on the provided product ID and save it on the disk
  22. Homework 6 Create a NODE JS script that retrieves data

    from movie list API and generate an excel file from it. Use this package: https://www.npmjs.com/package/movie-list-node