https://github.com/getcandy/nuxt-client
A Nuxt.js adapter for the v1 javascript client
https://github.com/getcandy/nuxt-client
Last synced: about 1 year ago
JSON representation
A Nuxt.js adapter for the v1 javascript client
- Host: GitHub
- URL: https://github.com/getcandy/nuxt-client
- Owner: getcandy
- Created: 2020-05-13T11:29:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-12T08:32:21.000Z (about 5 years ago)
- Last Synced: 2025-02-15T11:27:39.114Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 61.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# js-client-nuxt
A Nuxt.js adapter for the javascript client
## Installation
Install the package
```
npm install @getcandy/nuxt-client
```
Add it to your nuxt.config.js file
```
modules: [
'@getcandy/nuxt-client'
}]
```
## Config
```
{
host: "http://store-api.test"
}
```
## SSR Support
If you are using SSR, you will need to transpile the js client
```
build: {
transpile: [
'@getcandy/js-client'
]
}
```
## Usage
The Javascript client will be available in your components as `$getcandy`
[See JS client docs for full reference](https://github.com/getcandy/js-client)