Skip to content
Snippets Groups Projects
client-app-dev.md 2.22 KiB

Develop a client-side application

This document describe a tool to run an environment in order to develop client-side application on the cozy-stack.

We provide two different ways to run this environment, either manually where you have to install part of the dependencies yourself or via a Docker image in which all dependencies are packed.

This environment will provide a running instance a http server serving both a specified directory of your application on app.cozy.local:8080 and the cozy-stack on cozy.local:8080 (you can change the hostname and port if you want, see below).

Manually

To run the scripts/cozy-app-dev.sh directly on you system, you'll need to following dependencies:

  • go
  • curl
  • git
  • couchdb2: you need at least a running instance of CouchDB 2

Examples:

$ ./scripts/cozy-app-dev.sh -d ~/code/myapp

You'll need to add the following line to your /etc/hosts file: