Find out how to create a new CouchDB database on your local machine to mimic communication between your Angular 2 application and a server.
- [Instructor] Let's create a database in CouchDB.…From the CouchDB interface,…click the Create Database button.…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 confirm that by clicking…the Verify Installation button on the Verify tab.…We'll then go back to the Databases tab…and click into our database.…From there, we'll create a new record.…
By going to the all documents tab,…clicking on the plus sign, and then on the New Doc button.…We'll give our new record an id of settings,…as well as a filter property set to an empty string.…This will allow us to access…the record later in this course.…We'll click on the Create Document button…to save our changes.…We'll also need to enable CORES for all sites.…
CORES stands for cross origin resource sharing…and allows websites to communicate…with other websites on different domains.…CouchDB has CORES disabled by default…and we'll enable it on the configuration tab.…From the configuration tab, we'll click on CORES,…
- Overview of data storage options
- Saving and retrieving data from the browser
- Setting routes in the URL
- Using query strings and fragments instead of routes
- Saving and retrieving data from a server
- Working with user input
- Using JSONP instead of HTTP
- Why writing custom services is important
- Writing custom services for working with browsers and servers
Skill Level Intermediate
1. Getting Started
Application overview1m 39s
2. Data Storage Options
3. Storing Data in the Browser
4. Storing Data on a Server
5. Writing Custom Services
- 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.