In this exercise, you must write tests for all the CRUD routes in the application, and use Mocha to run the tests and view the results.
(asian music)…- [Scott] So now, if you go into step 5,…you're going to notice some small differences here…than where we left off yesterday.…The first thing you notice…is there's this new file index.js.…Does anybody know the meaning of index.js,…inside of node?…You know?…That's awesome.…Anybody else know?…- [Student] A convention?…- [Scott] It's a convention,…and it also has an actual meaning,…and it actually does some,…it behaves differently than every other file.…
It's kind of like index.html.…Remember when we wrote our server,…we had that static [Inaudible 00:00:43]…and I was using it the express.static,…and I pointed to client,…and automatically served index.html,…because that was the name of the file?…Well the convention is kind of the same,…and note, if you have a file by the name of index.js…inside of a directory,…you can just require that directory,…and it will automatically give you the index.js…of that file.…So it's a good practice to have index.js be the root…or the entry point to a directory or to a module.…
This course was created by Frontend Masters. It was originally released on 12/30/2015. We're pleased to host this training in our library.
- Executing Node.js
- Using Express
- What is middleware?
- Testing in Node.js
- Using Mongo with Node.js
- Data modeling
- Querying data with Mongoose
- Identifying sensitive routes
- Configuring the deployment
Skill Level Intermediate
Node.js: Build Your First Microservicewith Daniel Khan2h 9m Intermediate
Building APIs Using Hapi in Node.jswith Kirsten Hunter2h 23m Intermediate
Node.js: Extend and Maintain Applicationswith Daniel Khan3h 35m Intermediate
2. REST APIs
5. Organization and Configuration
7. Data Modeling
10. Securing Routes
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.