An open API service indexing awesome lists of open source software.

https://github.com/theroughcode/road-to-node

:computer: Repo for my "Road to Node" workshop.
https://github.com/theroughcode/road-to-node

asynchronous javascript node node-js nodejs workshop

Last synced: about 1 year ago
JSON representation

:computer: Repo for my "Road to Node" workshop.

Awesome Lists containing this project

README

          

# Road to Node
![node.js](https://upload.wikimedia.org/wikipedia/commons/thumb/d/d9/Node.js_logo.svg/2000px-Node.js_logo.svg.png)

## What is Node.js?
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses an event-driven, non-blocking I/O model (asynchronous) that makes it lightweight and efficient. It is used for writing web servers in JavaScript.

## Why Use Node.js?
1. Node is love. Node is life.
2. Node is fast and efficient (event-driven, asynchronous), which is useful for multi-user web apps that require real-time updates.
3. Node is love. Node is life.
4. Open-source, cross-platform.
5. Node is love. Node is life.
6. Node's package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
7. Node is love. Node is life.

## Here's How I Plan to Run The Workshop Trilogy
### Workshop #1: JavaScript Basics
Time: Tues, March 7 @ 7pm - 8.30pm (1.5hr)

Location: STC 0020

Goals:
- Introduce JavaScript
- Basic operations (for loops, arrays, etc.)
- == vs ===
- Objects
- ES6+ functionality (spread, function =>)
- Let vs var
- Array Operations (forEach, slicing, map, reduce, filter)
- Interaction with DOM (i.e. querySelector(All))
- Error handling with console
- * Will not go into CSS (i.e. transitions, add classes)*

### Workshop #2: Intro to node.js
Time: Tues, March 14 @ 7 - 8.30pm (1.5hr)

Location: MC 4020

Goals:
- Introduce node.js (asynchronous, single-threaded)
- Introduce concept of callbacks and error handling
- Introduce Promises (maybe?)

### Workshop #3: Setting up a Server with Express.js
Time: Tues, March 21 @ 7pm - 8.30pm (1.5hr)

Location: STC 0020

Goals:
- Integrate express to setup a local server
- Introduce routing
- Introduce localhost
- Create a basic HTML template with Handlebars
- Show how node connects express and Handlebars (through view engine)
- Introduce HTTP requests (POST, GET) with Postman

### Workshop #4: Road to Node 2018
Time: Tues, March 26 2018 @ 7pm - 8.30pm (1.5hr)

Location: STC 0010

Goals:
- Brief introduction to JavaScript
- Introduce Node.js
- Integrate express to setup a local server
- Introduce routing
- Introduce localhost
- Introduce HTTP requests (POST, GET, DELETE) with Postman