Upload
jamal-ogarro
View
56
Download
1
Tags:
Embed Size (px)
Citation preview
CLASS ROADMAP
• Node Basics
• Web Servers
• Express.js
• MongoDB
• Mongoose
• Build a Simple App
• Look at a Larger App
CODE CREW | INTRO TO NODE.JS
EXPECTATIONSCODE CREW | INTRO TO NODE.JS
• Familiar with JavaScript
• Familiar with the concept of databases
• Basic web development principles
JAVASCRIPT REVIEW
• Created by Netscape
• Runs in browser & server
• Is actually named ECMAScript
CODE CREW | INTRO TO NODE.JS
NODE.JS BASICSCODE CREW | INTRO TO NODE.JS
• Server-side JavaScript
• Built on top of V8
• Created by Ryan Dahl
• Open Source
• Asynchronous
• Single-threaded
WHAT IS NODE GOOD FOR?CODE CREW | INTRO TO NODE.JS
• Highly concurrent environments
• Real-time apps (i.e. chat rooms)
• Building CRUD applications
• Teams that want to make their front-end engineers full stack as fast a possible
CONNECTCODE CREW | INTRO TO NODE.JS
• Middleware framework for Node
• Used for building web servers
• Abstracts a lot of HTTP for you
EXPRESSCODE CREW | INTRO TO NODE.JS
• Lightweight web framework
• Inspired by Sinatra
• Flexible and doesn’t force conventions
• Fully asynchronous
• Loads application in memory and listens for requests
WHY USE EXPRESS?CODE CREW | INTRO TO NODE.JS
• Inspired by Sinatra
• Flexible framework that doesn’t force conventions
• Fully asynchronous
• Easy to learn
• Easily extendable
MONGOOSECODE CREW | INTRO TO NODE.JS
• Object Document Mapper
• Allows us to create models to organize our data
• Provides a schema for your MongoDB database
• Also provides validations
• Simulate joins
• Convenience methods for querying data from MongoDB