Introducing Node.JS will teach you the basics of Node.js through the example of building a sample "social profile" form.
About This Course
This course will describe the benefits of using Node.Js and walk through a sample project. Concepts covered include installing Node and Express, working with Jade, reading and writing data from a JSON file, as well as storing references in JSON data. By the end of the course you will have a solid overview of the benefits of using Node.js and a starting point for integrating Node into your workflow.
Chapter 1: Lesson Intro
A brief introduction to what you'll be learning in the course including how to access and use lesson files.
Chapter 2: Installing Node.js
Walk through the basic steps of installing node onto your system.
Chapter 3: Use Node and Express to Serve a Static Directory
This chapter demonstrates how to use NPM to install the dependencies, and start the server. Additionally, you will learn how to use an HTML file to respond to a HTTP GET request.
Chapter 4: Using Express Routes for Handling HTTP GET Requests
Learn how to set a GET express route, in order to take your first step for dynamic resource serving.
Chapter 5: First Look at Express’ View Engine, with EJS
Chapter 6: Second Look at Express’ View Engine, with Jade
The companion piece to Chapter 5, in this chapter you will learn why Jade is one of the most common renderers and will rewrite the EJS example using Jade syntax.
Chapter 7: Profile Edit Form with Jade and HTTP Post
In this chapter you will build an "Edit Profile" form. Along the way you will learn how to retrieve field variables and how to integrate Twitter Bootstrap as well as your custom CSS styles into your Node project.
Chapter 8: Read and Write Data from a JSON File
This chapter demonstrates how you can work with data in Node without the need for a database. Learn how to provide storage for user data in the profile form you created in the previous chapter. Specifically, you will discover how to save and retrieve data in a simple and valid way, using a simple JSON file.
Chapter 9: Uploading Images and Storing Reference in JSON Data
In this chapter, you will conclude the building of your profile form and learn how to retrieve file variables, and manipulate files on the server (in this case the image that a user would upload to a profile form).
- Experience using the command-line to install applications on your system will be useful.
- Experience in working with remote server technology will also be helpful.
- Mac or Windows desktop or laptop
- You will need admin rights on your system in order to install Node.Js and its dependencies
- Google Chrome web browser recommended