Nuxt Quick-Start Guide
Start using Confection on your Nuxt site with a few simple steps.
Issues? Questions? Feedback? Leave a comment. Already have a Confection account? Skip to step three. New to Confection? Learn more here.
If you haven’t already, create a Confection account. If you already have a Confection account, log in.
Click “My Account” (or “Set Up My Account” if you’re accessing your account for the first time). Enter your contact information, the domain(s) on which you want to use Confection, and select one of our two data storage options. Then, click “Save Changes.”
Click "Install Confection" (If you're accessing your account for the first time, this will be the default screen.) Next, select "Nuxt" to access the relevant scripts.
First, install the module from npm:
npm i --save @getconfection/confection-cable-nuxt
Then, add the module to the nuxt.config.js
:
buildModules: [
'@getconfection/confection-cable-nuxt'
],
Lastly, add the Confection component to your template
Be sure to replace %%%ACCOUNT_ID%%%
with your account ID from step three. Replace the other variables as suggested in the code comments.
That's it. You're done.
After installing Confection, start sending data to any number of different endpoints.
Questions or comments about using Confection with Nuxt? Leave them below.
You can also use the chat app in the lower right corner.