A frontend for Trading Strategy protocol.
Node >=20.19 required.
# Enable pnpm via corepack (recommended)
corepack enable
# Verify installation
pnpm --versionpnpm install --frozen-lockfilefrontend has one submodule dependency installed under deps:
fonts- optional licensed fonts (seestatic/fonts5.cssandsrc/lib/components/css/typography.css)
If you have access to the private tradingstrategy-ai/fonts, initialize and install submodules:
git submodule update --init --recursiveOnce the submodule has been installed, a build step needs to be run in order to have a fully working environment. Run the following script:
bash scripts/build-deps.shEnvironment variables required by the app are maintained in a .env file. Read about about
magic VITE envs.
Start the SvelteKit development server:
pnpm run dev# Unit tests
pnpm run test:unit --run
# Integration tests (requires test build)
pnpm run build --mode=test
pnpm run test:integrationTest builds use separate output directories (.svelte-kit-test/, node_modules/.vite-test/) so they don't interfere with the dev server. See docs/tests.md for details.
We are using Prettier for code formatting. Extensions are available for most code editors / IDEs (see "Editor Support" on Prettier homepage).
If you prefer not to have your editor do automatic formatting, please run the following command and commit properly formatted code before pushing a PR:
pnpm run formatOur CI/CD pipeline runs the following chack on PRs or pushes to master:
pnpm run format:checkadapter-node will bundle devDependencies whereas dependencies must be installed when deploying to production.
Do not do automatic releases. Always ask user confirmation for a release.