diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index de3e655e8..aa319aa71 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,7 +2,7 @@ name: Rust on: pull_request: - branches: [main, "renovate/*", "CHAOS-224-KHAOS-rewrite"] + branches: [main, "renovate/*", "CHAOS-224-KHAOS-rewrite", "CHAOS-571-integrate-be-fe"] push: branches: ["renovate/*"] diff --git a/.gitignore b/.gitignore index 6a3e68da1..dfce5d3af 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -**/.DS_Store \ No newline at end of file +**/.DS_Store +**/.vscode/ +target/ \ No newline at end of file diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 000000000..c6eccd40a --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,157 @@ +# Agent Guidelines for Chaos Repository + +## Build/Lint/Test Commands + +### Frontend (React/TypeScript) +- **Start dev server**: `cd frontend && yarn start` +- **Build**: `cd frontend && yarn build` +- **Lint**: `cd frontend && yarn lint` +- **Lint fix**: `cd frontend && yarn lint:fix` +- **Format**: `cd frontend && yarn format` +- **Type check**: `cd frontend && npx tsc --noEmit` + +### Backend (Rust) +- **Build**: `cd backend/server && cargo build` +- **Run**: `cd backend/server && cargo run` +- **Format**: `cd backend/server && cargo fmt` +- **Check**: `cd backend/server && cargo check` +- **Test**: `cd backend/server && cargo test` + +### Database +- **Run migrations**: Run `sqlx migrate run` in `backend` directory +- **Create new migrations**: Run `sqlx migrate add ` e.g. `sqlx migrate add user_settings` in `backend` directory. This will create a file of the format `