Learn the basics of Node.js—a lightweight JavaScript-based platform—and how to build a simple application.
Overview
Syllabus
Introduction
- Get started with Node.js
- Use the exercise files
- Understanding Node
- Demo application overview
- Download and install Node
- Why is Javascript Node's language?
- The benefits and features of Javascript
- Asynchronous tasks and callbacks
- Write your own module
- Manage third-party packages with npm
- What is the package.json file?
- Read from files
- Access directories
- Write to a file
- Node.js frameworks
- Express
- Socket.io
- Static serving with Express
- Create your browser app
- Create a get messages service
- Create a post messages service
- Connect to Socket.io from the browser app
- Create your Socket.io event
- Types of data frameworks
- Set up MongoDB
- Mongoose
- Saving data to MongoDB with Mongoose
- Nested callbacks
- Promises
- Async/await
- Challenge: Convert into async/await
- Solution: Convert into async/await
- Try/catch
- Finally
- Editor debugging
- Challenge: Convert for error handling
- Solution: Convert for error handling
- Simple test with Jasmine
- Async test with Jasmine
- Introduction to test first development
- Challenge: Write a passing test
- Solution: Write a passing test
- Next steps
Taught by
Alexander Zanfir