Find out how to create a new CouchDB database on your local machine to mimic communication between your Angular 2 application and a server.
- [Narrator] Let's create a database in CouchDB.…From the CouchDB interface,…click the create database button.…You can name the database whatever you'd like.…I'll call mine user.…You should see a message stating that…the database was created correctly,…and we can confirm this by clicking…the verify installation button on the verify tab.…Check marks mean you're good to go.…We'll then create a new record in our database,…and give it an ID of settings.…We'll also add a filter property,…and set it to an empty string.…
This will allow us to access the record…later in this course.…We'll also need to enable CORS for all sites.…CORS stands for Cross-Origin Resource Sharing,…and allows websites to communicate with…other websites on different domains.…Technically, our application and our database…are on the same local host network,…but each is running on a different port.…Our browser treats these ports as if…they were on different domains.…Enabling CORS is what allows Angular…and CouchDB to communicate via rest requests.…
CouchDB has CORS disabled by default.…
- Analyzing Angular 2 error messages
- Identifying the causes of common error messages
- Preventing common errors with custom error handling
- Analyzing testing reports
- Reviewing common testing report errors and their likely causes
Skill Level Intermediate
Angular Essential Trainingwith Justin Schwartzenberger2h 48m Intermediate
Angular 2: Widget-Based Architectureswith Derek Peruo52m 18s Intermediate
1. Getting Started
Application overview1m 49s
2. How Angular 2 Reports Errors
Error handling in Angular1m 21s
3. Common Angular 2 Errors
4. Testing Angular 2 Applications
- 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.