How to Setup Routes with Express Router - Node.js & Express Tutorials for Beginners
Offered By: Dave Gray via YouTube
Course Description
Overview
Learn how to set up routes with Express Router in this Node.js and Express tutorial for beginners. Organize your Express.js application by handling each route in its own file, creating multiple routers, and implementing a REST API. Explore topics such as creating and applying routers, working with static files, handling multiple HTTP methods per route, using named parameter routes, and testing API routes. Complete a hands-on challenge to reinforce your understanding of API route handlers.
Syllabus
Intro
Welcome
Intro and Setup
Creating a router
Applying the router
Applying static files to the routes
Correction concerning app.use
Creating a second router
Creating a REST API router
Multiple http methods per route and parameter values
Named parameter routes
Testing the API routes
Challenge - API route handlers
Taught by
Dave Gray
Related Courses
MongoDB for Node.js DevelopersMongoDB University Introduction to Office 365 Development and APIs
Microsoft via edX Server-side Development with NodeJS
The Hong Kong University of Science and Technology via Coursera Front-End Web UI Frameworks and Tools
The Hong Kong University of Science and Technology via Coursera Introduction to MongoDB using the MEAN Stack
MongoDB via edX