Full-stack application for managing warranty receipts: NestJS backend and Flutter (web/mobile) frontend.
- Node.js 20+ (backend)
- npm (backend)
- Flutter 3.24+ (frontend)
- Git
cd backend
npm installCreate a .env file in the backend folder (copy from .env.example):
cp .env.example .envIn .env, set at least:
JWT_SECRET– strong secret key (min. 32 characters, e.g.openssl rand -base64 32)FRONTEND_URL=http://localhost:8080– for web frontend CORS
Start the backend:
npm run start:devThe backend runs at http://localhost:3000.
cd frontend/guarantee_application
flutter pub getFirst time only (if web support is not enabled yet):
flutter config --enable-webRun in the browser:
flutter run -d web-server --web-port=8080The frontend is available at http://localhost:8080. The backend must be running on port 3000.
| Service | Port | Command |
|---|---|---|
| Backend API | 3000 | cd backend && npm run start:dev |
| Frontend web | 8080 | cd frontend/guarantee_application && flutter run -d web-server --web-port=8080 |
CI runs the same checks; run them locally before committing and pushing.
cd backend
npm ci
npm audit --audit-level=high
npm run lint
npx prettier --check "src/**/*.ts" "**/*.spec.ts"
npm run build
npm test- Fix lint:
npm run lint(includes --fix) - Format code:
npm run format(Prettier overwrites files)
cd frontend/guarantee_application
flutter pub get
flutter analyze
flutter test- Backend:
npm run lintpasses - Backend:
npx prettier --check "src/**/*.ts" "**/*.spec.ts"passes (or no diff afternpm run format) - Backend:
npm run buildpasses - Backend:
npm testpasses - Backend:
npm audit --audit-level=high(no high/critical issues) - Frontend:
flutter analyzepasses - Frontend:
flutter testpasses - No
.envor secrets committed (keep.envin.gitignore)
Run the full stack with Docker:
docker-compose up --build- Backend: http://localhost:3000
- Frontend: http://localhost:8080
Details: DOCKER.md
- Backend README – API, architecture, security
- Frontend README – Flutter setup, run, features
- SECURITY.md – security policy and reporting
- DOCKER.md – Docker usage
user@example.com/User1234!admin@example.com/Admin1234!demo@example.com/Demo1234!
For private use.