squidex-module
v0.1.2
Published
Squidex GraphqQL api connection
Downloads
21
Readme
squidex-module
Features
The module features Squidex GraphQL API connection.
Setup
- Add
squidex-module
dependency using yarn or npm to your project - Add
squidex-module
tomodules
section ofnuxt.config.js
{
modules: [
// Simple usage
'squidex-module',
// With options
['squidex-module', {
/* module options */
endpoint: 'https://cloud.squidex.io/api/content/<app>/graphql',
clientId: process.env.SQUIDEX_CLIENT_ID,
clientSecret: process.env.SQUIDEX_CLIENT_SECRET,
tokenCacheDuration: 15
}],
],
squidex: {
endpoint: 'https://cloud.squidex.io/api/content/<app/graphql',
clientId: process.env.SQUIDEX_CLIENT_ID,
clientSecret: process.env.SQUIDEX_CLIENT_SECRET,
tokenCacheDuration: 15
}
}
Usage
Module Description
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
- Add .env under the root directory:
// example: .env SQUIDEX_TOKEN_URL=https://cloud.squidex.io/identity-server/connect/token SQUIDEX_TOKEN_GRANT_TYPE=client_credentials SQUIDEX_TOKEN_SCOPE=squidex-api SQUIDEX_CLIENT_ID=<your:clientid> SQUIDEX_CLIENT_SECRET=<secret>
License
Copyright (c) zipme [email protected]