diff --git a/.claude/build.md b/.claude/build.md new file mode 100644 index 0000000..15eafc0 --- /dev/null +++ b/.claude/build.md @@ -0,0 +1,50 @@ +# Build and Test Docker Image + +Please build and test the Docker image with these steps: + +1. **Build the Docker image**: + ```bash + docker build -t convertx-openapi:local . + ``` + +2. **Verify the build**: + - Check image size: `docker images convertx-openapi:local` + - Inspect layers: `docker history convertx-openapi:local` + +3. **Run container locally**: + ```bash + docker run -d \ + --name convertx-test \ + -p 3000:3000 \ + -v $(pwd)/data:/app/data \ + -e JWT_SECRET=test-secret \ + -e NODE_ENV=production \ + convertx-openapi:local + ``` + +4. **Test the application**: + - Check logs: `docker logs convertx-test` + - Test health: `curl http://localhost:3000` + - Verify converters load properly + +5. **Multi-platform build** (if needed): + ```bash + docker buildx build \ + --platform linux/amd64,linux/arm64 \ + -t convertx-openapi:local \ + . + ``` + +6. **Push to custom registry** (if configured): + ```bash + docker tag convertx-openapi:local ${DOCKER_REGISTRY}/convertx:latest + docker push ${DOCKER_REGISTRY}/convertx:latest + ``` + +7. **Cleanup**: + ```bash + docker stop convertx-test + docker rm convertx-test + ``` + +Please execute these steps and report any issues. \ No newline at end of file diff --git a/.claude/commit.md b/.claude/commit.md new file mode 100644 index 0000000..bb09497 --- /dev/null +++ b/.claude/commit.md @@ -0,0 +1,37 @@ +# Commit Changes + +Please create a git commit with the following requirements: + +1. **Review all changes**: First run `git status` and `git diff` to see what has changed +2. **Stage appropriate files**: Use `git add` to stage the relevant changes +3. **Commit message format**: Use conventional commit format: + - feat: New feature + - fix: Bug fix + - docs: Documentation changes + - style: Code style changes (formatting, etc) + - refactor: Code refactoring + - test: Adding or updating tests + - chore: Maintenance tasks + - build: Build system changes + - ci: CI/CD changes + +3. **Message structure**: + ``` + (): + + + +