Home / Companies / Couchbase / Blog / Post Details
Content Deep Dive

Using Couchbase Mobile in a Web Application with only Angular 2 and PouchDB

Blog post from Couchbase

Post Details
Company
Date Published
Author
Nic Raboy, Developer Advocate, Couchbase
Word Count
2,274
Company Posts That Month
129
Language
English
Hacker News Points
-
Post removed?
No
Summary

AngularJS 1.0 was replaced by Angular 2, which is now being used to create a simple web application that syncs data using PouchDB and Couchbase Sync Gateway. The project requires Node.js 4.0+, Angular 2 CLI, Typings, and Couchbase Sync Gateway. To configure the Sync Gateway, a configuration file was created with basic settings for the database and CORS. An Angular 2 service provider was created to maintain data, which includes methods for syncing, fetching, and updating documents. The provider is imported into the application's @NgModule block. The application can be tested by running `ng serve` and accessing the project at http://localhost:4200.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.