Company
Date Published
Author
Laura Czajkowski, Developer Community Manager, Couchbase
Word count
2206
Language
English
Hacker News points
None

Summary

A developer is using Couchbase Server and Sync Gateway to create a development environment for mobile applications. The developer uses Docker and docker-compose to automate the setup process. The environment includes two containers: one for Couchbase Server and one for Sync Gateway. The developer configures the containers by creating custom Dockerfiles and scripts, such as `configure-node.sh` and `sync-gateway.json`. These scripts configure the Couchbase cluster, create an ecommerce bucket, and set up authentication for the Sync Gateway. The developer then generates a random dataset using FakeIt and pushes it to the Couchbase Server through the Sync Gateway REST API. Finally, the developer creates a VueJS application that connects to the Sync Gateway and pulls data from the Couchbase Server, demonstrating how the development environment can be used to build mobile applications.