Testing

In some cases (for testing), you want to start the experience without hosting it. This won't count towards your CPV usage and is a great way to iteratively test your developed functionality.

Locally Host a Web Server

You can test your experience locally by starting a local server and hosting the project files. We recommend using the ZapWorks CLI to do this (more information below).

Due to browser restrictions surrounding the use of the camera, you must use HTTPS to view or preview your site, even if doing so locally from your computer. If you're using webpack, consider using webpack-dev-server which has an https option to enable this.

ZapWorks CLI

You can use the ZapWorks command-line tool to serve a folder over HTTPS for access on your local computer, like this:

zapworks serve .

The command also lets you serve the folder for access by other devices on your local network, like this:

zapworks serve . --lan
zapcode branded_zapcode i