Getting started with ExpressJS
Chapters
This course is for beginners who wants to get started with ExpressJS framework for NodeJS. This course is subdivided into 13 parts as listed below
- Welcome note
- Installing NodeJS and ExpressJS
- Developing your first application with ExpressJS
- Working with Views/Templates
- Handling requests
- Application specific settings
- Midlleware and request flow
- Understanding routes
- Modularizing routes in ExpressJS
- Request Object
- Response Object
- A word on locals
- Conclusion
Please let us know how we can do better next time by leaving your feedback.
Author: Subject Coach
Added on: 5th Mar 2015
Please get in touch with your teacher or tutor in case you have a question related to this lesson
None just yet!
Hi,
You are with Jas, and in this course I will get you started with ExpressJS.
ExpressJS is a NodeJS web application framework designed for building flexible single page, multi page, and hybrid web applications. It works flawlessly with NodeJS.
In this course we will find out how to install and use express with NodeJS. We will dive into more technical aspects of ExpressJS such as routes, request and response objects, templates, adding partials, verb method etc.
Express gives NodeJS added controls or you can say a structure to build websites or web applications easily. NodeJS by it self, is not capable enough to provide functionality for you to build websites or you can say it will not be that easy for you to write or maintain your web applications by just using Node. With ExpressJS making websites becomes really easy. ExpressJS use templating engine to render web pages. A template system uses a template processor, to combine web templates to form finished web pages. ExpressJS can make use of custom dynamic user data, insert into HTML templates, to give user a dynamic web page. ExpressJS is more like a MVC engine, that is, Model, view and controller. This gives you flexibility to write views and logical code separately. MVC is much preferred and modern way of writing websites or web applications. Express comes with two different templating engines. First one is called Jade! Jade uses white spaces for parent child tag creation. Jade is the templating engine that ExpressJS use by default. Second one is called EJS. EJS is much like regular HTML. You have to add some special tags for ExpressJS to understand your HTML template as EJS template.
Let's go ahead and install ExpressJS.