Scott walks through the solution to exercise 6.
(flute)…- So the solution for this is, for mine at least,…well, let's just look at config.js.…So here's my solution for config.js.…I've done a lot error checking and stuff in here,…just to make sure that…this merge actually happens correctly.…So, what you could have done is just required the file,…which would give you objects and just put it there.…That would be great.…But there's a lot of edge cases,…so I'm just checking for those edge cases.…I think I'm still missing one, I'm looking at it.…So what I'm doing here, is I'm doing a try catch,…anybody not know what a try catch is?…Alright, just to go over a try catch, it's like,…everything between this try block,…I can just put any type of java script I want there…and then what's going to happen is,…if java script detects that an error…has been thrown in that try block,…it's going to allow me to handle that error…inside this catch block,…it's going to be passed as an argument.…
So there's a syntax error here, or a reference error,…or whatever type of error that I threw,…
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
Building a Slack Bot with Node.js Microserviceswith Daniel Khan2h 9m Intermediate
Building APIs Using Hapi in Node.jswith Kirsten Hunter2h 23m 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.