Skip to content

Dev 1220 backend integration examples laravel symfony nest js express with docker compose#33

Open
KrzysztofZie wants to merge 7 commits into
masterfrom
DEV-1220_Backend-integration-examples-Laravel-Symfony-NestJS-Express-with-Docker-Compose
Open

Dev 1220 backend integration examples laravel symfony nest js express with docker compose#33
KrzysztofZie wants to merge 7 commits into
masterfrom
DEV-1220_Backend-integration-examples-Laravel-Symfony-NestJS-Express-with-Docker-Compose

Conversation

@KrzysztofZie
Copy link
Copy Markdown
Collaborator

@KrzysztofZie KrzysztofZie commented May 18, 2026

Backend integration examples — Django, Laravel, NestJS, Rails, Spring, Symfony with Docker Compose


Note

Medium Risk
Medium risk because it changes the Django batch CRUD API contract (create-rows/update-rows) and setup flow, which can break existing clients if they still send the old request shapes.

Overview
Adds Angular and React variants to the Django server-side example and updates the tooling/docs so make setup installs all three frontends and the Vite dev server serves /angular.html and /react.html alongside the JS version.

Updates the Django batch mutation endpoints to match the newer Handsontable dataProvider payloads: create_rows now creates rowsAmount blank employees via bulk_create, and update_rows now applies row['changes'] instead of the full row payload. Also removes the deprecated Compose version field and ignores .claude/ in .gitignore.

Reviewed by Cursor Bugbot for commit 3473424. Bugbot is set up for automated code reviews on this repo. Configure here.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 18, 2026

Deploy Preview for handsontable-examples canceled.

Name Link
🔨 Latest commit 35f88a8
🔍 Latest deploy log https://app.netlify.com/projects/handsontable-examples/deploys/6a0af668e3e48f00084ee827

@netlify
Copy link
Copy Markdown

netlify Bot commented May 18, 2026

Deploy Preview for handsontable-examples canceled.

Name Link
🔨 Latest commit 3473424
🔍 Latest deploy log https://app.netlify.com/projects/handsontable-examples/deploys/6a0d9891468bef00081e5420

title: 'Row added',
message: `Created ${data.length} row${data.length !== 1 ? 's' : ''}`,
duration: 3000,
});
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Frontend crashes accessing .length on null response

High Severity

The store method in ProductController.php returns response()->json(null, 201), meaning res.json() in the frontend resolves to null. The onRowsCreate callback then accesses data.length on this null value, causing a TypeError at runtime every time a row is created.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 35f88a8. Configure here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrected

Comment thread server-examples/laravel/frontend/src/main.js
@KrzysztofZie KrzysztofZie requested a review from qunabu May 18, 2026 12:45
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

There are 3 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 9ef33c1. Configure here.

@echo "==> Installing frontend dependencies..."
cd frontend && npm install
cd frontend-angular && npm install
cd frontend-react && npm install
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makefile setup skips Angular and React build steps

High Severity

The setup target runs npm install for Angular and React frontends but never runs their build or watch scripts before starting Vite. Vite's middleware serves pre-built output from frontend-angular/dist and frontend-react/dist, returning HTTP 503 when those directories are missing. Unlike setup.sh, which runs npm run build and npm run watch & for both, make setup leaves /angular.html and /react.html broken.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9ef33c1. Configure here.

serializer.is_valid(raise_exception=True)
serializer.save()
# Return created rows so dataProvider can update its row map with server-assigned ids.
rows_amount = max(1, int(request.data.get('rowsAmount', 1)))
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create_rows crashes on null rowsAmount value

Low Severity

int(request.data.get('rowsAmount', 1)) crashes with TypeError when the client sends "rowsAmount": null in JSON, because .get() returns None (the key exists) and int(None) raises TypeError. This produces a 500 instead of a useful validation error. A guard like int(request.data.get('rowsAmount') or 1) would handle the null case.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9ef33c1. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants