SlideShare a Scribd company logo
Academy PRO
Misc
Lectures plan
1. Node.js Platform
2. Web applications - Default stack
3. Web applications - Alternative stacks
4. Node.js in Production
5. Miscellaneous
Node.js in
1. CLI
2. OS API
3. Networks
4. Data access
5. Testing
6. IoT
CLI - argv
CLI - argv - yargs
https://github.com/yargs/yargs
CLI - argv - commander
https://github.com/tj/commander.js
CLI - colors
https://github.com/chalk/chalk
CLI - autocomplete
https://github.com/f/omelette
azure-xplat-cli
CLI - questioning
https://github.com/sboudrias/Inquirer.js
CLI - UI
https://github.com/chjj/blessed
CLI - UI
https://github.com/yaronn/blessed-contrib
Line Chart
Bar Chart
Stacked Bar Chart
Map
Gauge
Stacked Gauge
Donut
LCD Display
Rolling Log
Picture
Sparkline
Table
Tree
Markdown
Npm global modules
OS info
Network - http
Network - http
https://github.com/mzabriskie/axios
Network - tcp
Network - udp
Network - WebSockets
https://github.com/websockets/ws
Network - socket.io cluster architecture
https://github.com/elad/node-cluster-socket.io
● Proxy requests from 1 IP to same worker
● Persistent storage
https://github.com/socketio/socket.io-redis
socket.io cluster master
socket.io cluster worker
socket.io app integration
Data access patterns
HTTP
Routers
Controllers
Services
Repositories
Models
ORM - Object Relationship Mapper
ODM - Object Document Mapper
Active Record Data Mapper
Active Record
Mongoose Sequalize
Data mapper
https://github.com/typeorm/typeorm
Data Access Layer - Repository
Returning callbacks
Testing
Testing - assertion chaijs
Testing - mocks, stubs, spies
https://github.com/sinonjs/sinon
Testing - Dependency injection
Testing - Dependency injection
https://github.com/jaredhanson/electrolyte
Testing - Dependency injection
https://github.com/thlorenz/proxyquire
Testing - runners - mocha
sync
async
Testing - mocha
Testing - runners - ava
Testing - API
https://github.com/visionmedia/supertest
IoT - johny-five
Johnny-Five is an Open Source, Firmata Protocol based,
IoT and Robotics programming framework.
- Arduino (all models)
- Electric Imp
- Beagle Bone
- Intel Galileo & Edison
- Linino One
- Pinoccio
- pcDuino3
- Raspberry Pi
- Particle/Spark Core & Photon
- Tessel 2
- TI Launchpad and more!
IoT - johny-five
IoT - Tessel
2 Tessel Module ports
2 USB ports
802.11bgn Wifi
Ethernet
580MHz Mediatek MT7620n
64 MB DDR2 RAM & 32 MB Flash
48MHz Atmel SAMD21 coprocessor
microUSB
IoT - Tessel
IoT - Tessel
npm install t2-cli -g
t2 wifi -n [ssid] -p [password]
t2 run ambient
Academy PRO: Node.js - miscellaneous. Lecture 5
Ad

Recommended

PPTX
WHAT'S NEW IN TYPESCRIPT 3.4
Jay Raj Mishra
 
PPTX
IAC_PuppetCampLondon_2016
Przemyslaw 'SoboL' Sobieski
 
PPTX
carrow - Go bindings to Apache Arrow via C++-API
Yoni Davidson
 
PPTX
How to improve CI CD for any Node.js application
Joao Marins
 
PPTX
API Design: Women Who Code (WWCode) DFW
Axway
 
PDF
Swift2 smalltalk osxdev
Jung Kim
 
PPTX
Mark Rendle ".NET Is Dead. Long Live .NET!"
Fwdays
 
PDF
Kubernetes best practices
Bill Liu
 
PPTX
Academy PRO: Node.js alternative stacks. Lecture 3
Binary Studio
 
PDF
apidays LIVE Paris 2021 - APIGEE, different ways for integrating with CI/CD p...
apidays
 
PDF
(C)NodeJS
Jackson Tian
 
PPTX
Academy PRO: Node.js default stack. Lecture 2
Binary Studio
 
PPT
State ofappdevelopment
gillygize
 
ODP
An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)
Eric D. Schabell
 
PDF
URL Design
Walter Ebert
 
PPTX
Front-end development introduction (JavaScript). Part 2
Oleksii Prohonnyi
 
PDF
Codemotion 2012 Rome - An OpenShift Primer
Eric D. Schabell
 
PDF
DevOps of Python applications using OpenShift (Italian version)
Francesco Fiore
 
PDF
Kandroid for nhn_deview_20131013_v5_final
NAVER D2
 
PDF
Jaap : node, npm & grunt
Bertrand Chevrier
 
PDF
Dependent things dependency management for apple sw - slideshare
Cavelle Benjamin
 
PDF
OpenFest 2016 - Open Microservice Architecture
Nikolay Stoitsev
 
PDF
Core Android
Dominik Helleberg
 
PPT
Sistema de Notificações com SignalR TDC 2014
Waldyr Felix
 
PDF
Talking to Web Services
DrupalcampAtlanta2012
 
PPT
Sergey Ilinsky Presentation Ample Sdk
Ajax Experience 2009
 
PDF
Scaling up development of a modular code base
Robert Munteanu
 
PPT
Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo...
ryancox
 
PPTX
Academy PRO: D3, part 3
Binary Studio
 
PPTX
Academy PRO: D3, part 1
Binary Studio
 

More Related Content

Similar to Academy PRO: Node.js - miscellaneous. Lecture 5 (20)

PPTX
Academy PRO: Node.js alternative stacks. Lecture 3
Binary Studio
 
PDF
apidays LIVE Paris 2021 - APIGEE, different ways for integrating with CI/CD p...
apidays
 
PDF
(C)NodeJS
Jackson Tian
 
PPTX
Academy PRO: Node.js default stack. Lecture 2
Binary Studio
 
PPT
State ofappdevelopment
gillygize
 
ODP
An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)
Eric D. Schabell
 
PDF
URL Design
Walter Ebert
 
PPTX
Front-end development introduction (JavaScript). Part 2
Oleksii Prohonnyi
 
PDF
Codemotion 2012 Rome - An OpenShift Primer
Eric D. Schabell
 
PDF
DevOps of Python applications using OpenShift (Italian version)
Francesco Fiore
 
PDF
Kandroid for nhn_deview_20131013_v5_final
NAVER D2
 
PDF
Jaap : node, npm & grunt
Bertrand Chevrier
 
PDF
Dependent things dependency management for apple sw - slideshare
Cavelle Benjamin
 
PDF
OpenFest 2016 - Open Microservice Architecture
Nikolay Stoitsev
 
PDF
Core Android
Dominik Helleberg
 
PPT
Sistema de Notificações com SignalR TDC 2014
Waldyr Felix
 
PDF
Talking to Web Services
DrupalcampAtlanta2012
 
PPT
Sergey Ilinsky Presentation Ample Sdk
Ajax Experience 2009
 
PDF
Scaling up development of a modular code base
Robert Munteanu
 
PPT
Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo...
ryancox
 
Academy PRO: Node.js alternative stacks. Lecture 3
Binary Studio
 
apidays LIVE Paris 2021 - APIGEE, different ways for integrating with CI/CD p...
apidays
 
(C)NodeJS
Jackson Tian
 
Academy PRO: Node.js default stack. Lecture 2
Binary Studio
 
State ofappdevelopment
gillygize
 
An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)
Eric D. Schabell
 
URL Design
Walter Ebert
 
Front-end development introduction (JavaScript). Part 2
Oleksii Prohonnyi
 
Codemotion 2012 Rome - An OpenShift Primer
Eric D. Schabell
 
DevOps of Python applications using OpenShift (Italian version)
Francesco Fiore
 
Kandroid for nhn_deview_20131013_v5_final
NAVER D2
 
Jaap : node, npm & grunt
Bertrand Chevrier
 
Dependent things dependency management for apple sw - slideshare
Cavelle Benjamin
 
OpenFest 2016 - Open Microservice Architecture
Nikolay Stoitsev
 
Core Android
Dominik Helleberg
 
Sistema de Notificações com SignalR TDC 2014
Waldyr Felix
 
Talking to Web Services
DrupalcampAtlanta2012
 
Sergey Ilinsky Presentation Ample Sdk
Ajax Experience 2009
 
Scaling up development of a modular code base
Robert Munteanu
 
Developing Applications for Beagle Bone Black, Raspberry Pi and SoC Single Bo...
ryancox
 

More from Binary Studio (20)

PPTX
Academy PRO: D3, part 3
Binary Studio
 
PPTX
Academy PRO: D3, part 1
Binary Studio
 
PPTX
Academy PRO: Cryptography 3
Binary Studio
 
PPTX
Academy PRO: Cryptography 1
Binary Studio
 
PPTX
Academy PRO: Advanced React Ecosystem. MobX
Binary Studio
 
PPTX
Academy PRO: Docker. Part 4
Binary Studio
 
PPTX
Academy PRO: Docker. Part 2
Binary Studio
 
PPTX
Academy PRO: Docker. Part 1
Binary Studio
 
PPTX
Binary Studio Academy 2017: JS team project - Orderly
Binary Studio
 
PPTX
Binary Studio Academy 2017: .NET team project - Unicorn
Binary Studio
 
PPTX
Academy PRO: React native - miscellaneous
Binary Studio
 
PPTX
Academy PRO: React native - publish
Binary Studio
 
PPTX
Academy PRO: React native - navigation
Binary Studio
 
PPTX
Academy PRO: React native - building first scenes
Binary Studio
 
PPTX
Academy PRO: React Native - introduction
Binary Studio
 
PPTX
Academy PRO: Push notifications. Denis Beketsky
Binary Studio
 
PPTX
Academy PRO: Docker. Lecture 4
Binary Studio
 
PPTX
Academy PRO: Docker. Lecture 3
Binary Studio
 
PPTX
Academy PRO: Docker. Lecture 2
Binary Studio
 
PPTX
Academy PRO: Docker. Lecture 1
Binary Studio
 
Academy PRO: D3, part 3
Binary Studio
 
Academy PRO: D3, part 1
Binary Studio
 
Academy PRO: Cryptography 3
Binary Studio
 
Academy PRO: Cryptography 1
Binary Studio
 
Academy PRO: Advanced React Ecosystem. MobX
Binary Studio
 
Academy PRO: Docker. Part 4
Binary Studio
 
Academy PRO: Docker. Part 2
Binary Studio
 
Academy PRO: Docker. Part 1
Binary Studio
 
Binary Studio Academy 2017: JS team project - Orderly
Binary Studio
 
Binary Studio Academy 2017: .NET team project - Unicorn
Binary Studio
 
Academy PRO: React native - miscellaneous
Binary Studio
 
Academy PRO: React native - publish
Binary Studio
 
Academy PRO: React native - navigation
Binary Studio
 
Academy PRO: React native - building first scenes
Binary Studio
 
Academy PRO: React Native - introduction
Binary Studio
 
Academy PRO: Push notifications. Denis Beketsky
Binary Studio
 
Academy PRO: Docker. Lecture 4
Binary Studio
 
Academy PRO: Docker. Lecture 3
Binary Studio
 
Academy PRO: Docker. Lecture 2
Binary Studio
 
Academy PRO: Docker. Lecture 1
Binary Studio
 
Ad

Recently uploaded (20)

PDF
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Safe Software
 
PDF
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
PDF
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
PDF
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
PPTX
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
PDF
Agentic AI for Developers and Data Scientists Build an AI Agent in 10 Lines o...
All Things Open
 
PDF
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
PDF
Mastering AI Workflows with FME by Mark Döring
Safe Software
 
PDF
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
PDF
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
PDF
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
 
PDF
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
PDF
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
PDF
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
PDF
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
PDF
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
PDF
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
 
PDF
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
PPTX
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Safe Software
 
Quantum AI Discoveries: Fractal Patterns Consciousness and Cyclical Universes
Saikat Basu
 
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
 
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
Agentic AI for Developers and Data Scientists Build an AI Agent in 10 Lines o...
All Things Open
 
10 Key Challenges for AI within the EU Data Protection Framework.pdf
Priyanka Aash
 
Mastering AI Workflows with FME by Mark Döring
Safe Software
 
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
"Scaling in space and time with Temporal", Andriy Lupa.pdf
Fwdays
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
 
“MPU+: A Transformative Solution for Next-Gen AI at the Edge,” a Presentation...
Edge AI and Vision Alliance
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
 
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
 
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
 
Ad

Academy PRO: Node.js - miscellaneous. Lecture 5