See how it works
API Schema
Translate into TypeScript definitions
Generate client module
Use the client
pnpm init
to create one), ideally with TypeScriptnpx
package.json
file.
A browser window will open, and you will be prompted to login to your Frontstack account.
info
command:
project
command:
.frontstack-local
directory that contains your project configuration.
We recommend that you add this directory to your .gitignore
file, because it contains sensitive information, such as your Frontstack API token.
.frontstack
directory in your project root:
generated-client.js
- The client that you can import into your projectfetch-api.d.t
- Type definitions for the clientgenerated-types.d.ts
- Type definitions for the schemaquery-types.ts
- Type definitions for queriesTroubleshooting
.frontstack-local
directory and run the login
and project
commands again.If you are using the frontstack
command, make sure that it is installed globally and updated to the latest version (run pnpm add -g @frontstackdev/cli
).Check that you are using the latest version using frontstack --version
or npx @frontstackdev/cli --version
.config
object to all client calls and setting requestUrl
to your currently requested URL: