Skip to content

Set up a basic app with Vue.js

In this tutorial you set up a basic app and add it to the App Store. You’ll learn how to set up the app and its widgets, authenticate, and communicate with the API.

We use the Vue 3 Composition API with Vite in this example.

  1. A basic knowledge of Git. We work with the GitHub CLI.
  2. npm, to install the dependencies of the GitHub repository on your machine. Install npm

Clone the basic app Git repository to your local machine:

Terminal window
git clone https://github.com/CampingCare/basic-app-vue.git
cd basic-app-vue/

Install the node modules with npm:

Terminal window
npm install

Next, start your development server:

Terminal window
npm run dev

The application now runs on your machine, at something like http://localhost:5173/. You’ll see the default app URL page, which looks like this:

Basic Vue app

Go to the App Store and create a new app. Open the App Store

Add app

This app supports a default app URL and several widgets. Set it up like this:

App configuration

This example doesn’t use webhooks. For an example with webhooks, see the PHP basic app or the webhooks documentation.

This app doesn’t need any extra scopes. For an example with scopes, see the PHP basic app or the scopes documentation.

Once you’ve set this up, save the app and you’ll be redirected to the app page.

To test the app, install it after you’ve saved it. Read more about the install process

After installing the app you’ll see this screen:

App result

That’s it: your basic app works.

The last step is to upload your application to a public host. This can be any hosting company or cloud platform you prefer. For a single-page application like this one, Firebase Hosting might suit you.