# Squidex Client

> A JS client for the [Squidex](https://squidex.io/) CMS

## Requirements

-   [Node JS](https://nodejs.org/) v12(?)

## Installation

```sh
npm install @querc/squidex-client
```

## Usage

```ts
// Create client
const client = new SquidexClient({
    clientId: 'my-app:default',
    clientSecret: 'SEKRIT',
});

// Get content from the `Posts` schema
const posts = await client.query('Posts');
posts.items.forEach(post => {
    console.log(post.title);
});
```

See [`examples`](https://unpkg.com/@querc/squidex-client/examples/) for more detailed usage.

## TypeScript

Squidex Client is built using TypeScript, so types are installed with the package.

## API Documentation

Check out the [API docs](https://unpkg.com/@querc/squidex-client/docs/index.html).

## Contributing

You can raise issues or propose feature requests in the [Bitbucket issue tracker](https://bitbucket.org/lindsayevans/node-squidex-client/issues).

See [`CONTRIBUTING.md`](https://unpkg.com/@querc/squidex-client/CONTRIBUTING.md).
