vg-coder-workspace
v1.0.1
Published
Modern NestJS/Angular workspace for VG Coder CLI
Maintainers
Readme
VG Coder - NestJS/Angular Upgrade
Quick Start
Start Both Applications
cd vg
nx run-many --target=serve --projects=api,ng-appThis will start:
- API Backend on
http://localhost:3000 - Angular Dashboard on
http://localhost:4200
Start Individually
Backend only:
cd vg
nx serve apiFrontend only:
cd vg
nx serve ng-appProject Structure
vg/
├── apps/
│ ├── api/ # NestJS backend
│ └── ng-app/ # Angular frontend
└── packages/
└── core/ # Shared TypeScript libraryAvailable Endpoints
| Endpoint | Method | Description |
|----------|--------|-------------|
| /api/analyze | POST | Analyze project and return source code |
| /api/execute | POST | Execute bash scripts with validation |
| /api/info | GET | Get project information and statistics |
| /api/clean | DELETE | Clean output directories |
Development
Build All
nx run-many --target=build --allBuild Specific Project
nx build core
nx build api
nx build ng-appTest
nx test core
nx test api
nx test ng-appArchitecture
Core Library (
@vg/core): Shared business logic- ProjectDetector
- FileScanner
- TokenManager
- BashExecutor
- IgnoreManager
API Backend: NestJS REST API with controllers and services
Frontend: Angular standalone components with reactive forms
Configuration
- Proxy: Angular dev server proxies
/apirequests tohttp://localhost:3000 - CORS: NestJS allows requests from
http://localhost:4200
