This repository is an open-source example of how to quickly get up and running with Zoo's Text-to-CAD API endpoints. It is built using SvelteKit.
- Generate a dev API token from https://dev.zoo.dev
- Set the
VITE_TOKEN
environment variable in./.env.development.local
to the generated dev API token - Install yarn
- Install dependencies with
yarn global add vite
andyarn install
- Run the dev server with
yarn dev -- --open
The full collection of scripts are listed in package.json.
To create a production version of your app:
yarn build
You can preview the production build with yarn preview
.
Please run the following commands to ensure that your code is as ready for review as it can be:
yarn fmt --fix && yarn test
In order to run our Playwright testing suite locally, please set the PLAYWRIGHT_SESSION_COOKIE
variable within .env.development
to a token from a logged in local development session. You can retrieve it by:
- logging in to the project locally using the method outlined above
- opening the Application tab in your browser developer tools
- copying out the value of the cookie titled
__Secure-next-auth.session-token
with the domain oflocalhost
Now you should be able to run the yarn test:integration
and yarn test
commands successfully.