-
Notifications
You must be signed in to change notification settings - Fork 3
Dev 1220 backend integration examples laravel symfony nest js express with docker compose #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
774789a
5990b24
35f88a8
b375237
fbf43c0
9ef33c1
3473424
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,4 +6,5 @@ dist | |
| .cache | ||
| .vscode | ||
| .DS_Store | ||
| .angular | ||
| .angular | ||
| .claude/ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -133,10 +133,12 @@ def get_queryset(self): | |
| @action(detail=False, methods=['post'], url_path='create-rows') | ||
| @transaction.atomic | ||
| def create_rows(self, request): | ||
| serializer = EmployeeSerializer(data=request.data, many=True) | ||
| 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))) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| employees = Employee.objects.bulk_create([ | ||
| Employee(first_name='', last_name='', department='', role='', salary=0) | ||
| for _ in range(rows_amount) | ||
| ]) | ||
| serializer = EmployeeSerializer(employees, many=True) | ||
| return Response(serializer.data, status=201) | ||
|
|
||
| @action(detail=False, methods=['patch'], url_path='update-rows') | ||
|
|
@@ -145,7 +147,7 @@ def update_rows(self, request): | |
| updated = [] | ||
| for row in request.data: | ||
| employee = Employee.objects.get(pk=row['id']) | ||
| serializer = EmployeeSerializer(employee, data=row, partial=True) | ||
| serializer = EmployeeSerializer(employee, data=row['changes'], partial=True) | ||
| serializer.is_valid(raise_exception=True) | ||
| serializer.save() | ||
| updated.append(serializer.data) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,3 @@ | ||
| version: '3.9' | ||
|
|
||
| services: | ||
| db: | ||
| image: postgres:15-alpine | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| { | ||
| "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
| "version": 1, | ||
| "newProjectRoot": "projects", | ||
| "projects": { | ||
| "django-angular": { | ||
| "projectType": "application", | ||
| "schematics": {}, | ||
| "root": "", | ||
| "sourceRoot": "src", | ||
| "prefix": "app", | ||
| "architect": { | ||
| "build": { | ||
| "builder": "@angular-devkit/build-angular:application", | ||
| "options": { | ||
| "outputPath": { | ||
| "base": "dist", | ||
| "browser": "browser" | ||
| }, | ||
| "baseHref": "/angular-assets/", | ||
| "index": { | ||
| "input": "src/index.html", | ||
| "output": "angular.html" | ||
| }, | ||
| "browser": "src/main.ts", | ||
| "polyfills": ["zone.js"], | ||
| "tsConfig": "tsconfig.app.json", | ||
| "assets": [], | ||
| "styles": [ | ||
| "node_modules/handsontable/styles/handsontable.css", | ||
| "node_modules/handsontable/styles/ht-theme-main.css", | ||
| "src/styles.css" | ||
| ], | ||
| "scripts": [], | ||
| "allowedCommonJsDependencies": [ | ||
| "core-js", | ||
| "@handsontable/pikaday", | ||
| "numbro" | ||
| ] | ||
| }, | ||
| "configurations": { | ||
| "production": { | ||
| "budgets": [ | ||
| { | ||
| "type": "initial", | ||
| "maximumWarning": "500kb", | ||
| "maximumError": "1mb" | ||
| }, | ||
| { | ||
| "type": "anyComponentStyle", | ||
| "maximumWarning": "2kb", | ||
| "maximumError": "4kb" | ||
| } | ||
| ], | ||
| "outputHashing": "all" | ||
| }, | ||
| "development": { | ||
| "optimization": false, | ||
| "extractLicenses": false, | ||
| "sourceMap": true, | ||
| "namedChunks": true | ||
| } | ||
| }, | ||
| "defaultConfiguration": "production" | ||
| }, | ||
| "serve": { | ||
| "builder": "@angular-devkit/build-angular:dev-server", | ||
| "options": { | ||
| "proxyConfig": "proxy.conf.json" | ||
| }, | ||
| "configurations": { | ||
| "production": { | ||
| "buildTarget": "django-angular:build:production" | ||
| }, | ||
| "development": { | ||
| "buildTarget": "django-angular:build:development" | ||
| } | ||
| }, | ||
| "defaultConfiguration": "development" | ||
| }, | ||
| "extract-i18n": { | ||
| "builder": "@angular-devkit/build-angular:extract-i18n", | ||
| "options": { | ||
| "browserTarget": "django-angular:build" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "cli": { | ||
| "analytics": false | ||
| } | ||
| } |


There was a problem hiding this comment.
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
setuptarget runsnpm installfor Angular and React frontends but never runs theirbuildorwatchscripts before starting Vite. Vite's middleware serves pre-built output fromfrontend-angular/distandfrontend-react/dist, returning HTTP 503 when those directories are missing. Unlikesetup.sh, which runsnpm run buildandnpm run watch &for both,make setupleaves/angular.htmland/react.htmlbroken.Reviewed by Cursor Bugbot for commit 9ef33c1. Configure here.