Join Jess Chadwick for an in-depth discussion in this video Populate configuration settings, part of Learning ASP.NET Core MVC.
- [Instructor] Now that I've shown you the basics…of the configuration API using environment variables,…I'll show you how to use another popular…configuration source, JSON files.…To read configuration settings from a JSON file,…all you have to do is add a call to the method,…AddJsonFile, on your configuration builder…and give it a path to the configuration file.…Here I've used the file name config.json…but this file can be named anything you like.…Just be sure that you specify the full path to the file…which you can get from the content root property…of the environment object E and V.…
Once again, I've ran into another API…that lives in a new GET package…that I have not added to my project yet.…So I'll go ahead and do that.…Once the package has been added and downloaded,…I'm almost ready to run my application…and show the JSON API in action…except for the fact that at this point,…this JSON file doesn't actually exist.…Which means that if I were to run the application,…it would just throw an exception.…So before I run the application,…
- Building blocks of ASP.NET Core applications
- Creating a new project
- Responding to HTTP requests
- Serving static files
- Understanding the MVC pattern
- Handling requests with controllers
- Rendering HTML with Razor
- Rendering data, view markup, and view logic
- Creating HTML forms
- Validating form data
- Reading and writing from a database with Entity Framework
- Improving the user experience
- Exposing data with a web API
- Securing your ASP.NET application
Skill Level Intermediate
1. The Basics
2. The Model-View-Controller (MVC) Pattern
Understand routing4m 24s
3. Render HTML with Views
4. Work with Data
5. Improve User Experience with Ajax and Web APIs
6. Secure Your Application
Next steps1m 42s
- 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.