traP Online Judge フロントエンド
This template should help get you started developing with Vue 3 in Vite.
VSCode + Volar (and disable Vetur).
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
See Vite Configuration Reference.
npm installnpm run devnpm run buildLint with ESLint
npm run lintルートディレクトリで./scripts/gen-api.sh developmentを実行してください。APIを利用する部分については,生成されたコードを使って実装をしてください。
開発環境においては,モックサーバーを利用します。モックサーバーの立ち上げには./scripts/run-mock-api.shを実行してください。
このファイルを実行するとlocalhost:4010にモックサーバーが立ち上がりますので,ここで提供されるAPIを叩いてください。