@sinotrade/create-shioaji-app
v0.1.1
Published
Scaffold a new app that connects to shioaji — SinoPac's market-data server.
Readme
@sinotrade/create-shioaji-app
Scaffold a new app that connects to shioaji — SinoPac's market-data server.
Scaffolding Your First Shioaji App
Compatibility Note: Requires Node.js 18+. A shioaji server running on
http://localhost:8080is needed for the dev server to talk to.
With NPM:
npm create @sinotrade/shioaji-appWith Yarn:
yarn create @sinotrade/shioaji-appWith PNPM:
pnpm create @sinotrade/shioaji-appWith Bun:
bun create @sinotrade/shioaji-appThen follow the prompts!
You can also pass a project name and skip the prompts with -y:
pnpm create @sinotrade/shioaji-app my-app -y --pm pnpmYou can use . for the project name to scaffold in the current directory.
What you get
- React 19 + TypeScript + Vite 8
- Vanilla Extract for zero-runtime CSS-in-JS
- Light / dark theme toggle persisted in
localStorage - Health badge, contract lookup, and historical tick demo as starting points
- Vite dev server pre-configured to proxy
/apitohttp://localhost:8080
Currently supported templates
react-ts✅
Coming soon:
react-jsvue-tssolid-ts
Options
| Flag | Description |
| --- | --- |
| -t, --template <id> | Template id (currently react-ts) |
| --pm <name> | Package manager (pnpm, npm, yarn, bun) |
| --git / --no-git | Initialize a git repository (default: yes) |
| --install / --no-install | Install dependencies (default: yes) |
| -y, --yes | Accept defaults for any unanswered prompts |
| -h, --help | Show help |
License
Apache-2.0 © Sinotrade
