How gnud-na/blog-api works
Project type and purpose
• This is a backend full-stack application (RESTful API) for a blog platform.
• Built with NestJS (Node.js framework) and PostgreSQL via TypeORM.
• Responsible for user authentication (JWT), post and comment management, and role-based access control.
File structure
• Top-level files:
• nest-cli.json, tsconfig*.json – NestJS and TypeScript configuration
• package.json / lock – dependencies and scripts
• .prettierrc, eslint.config.mjs – formatting and linting
• src/ directory:
• main.ts – application entry point, bootstraps Nest application
• app.module.ts – root module, imports other feature modules
• app.controller.ts / spec.ts – sample controller and its unit test
• app.service.ts – sample service
• test/ directory for end-to-end tests (jest-e2e.json, app.e2e-spec.ts)
README for additional insights
• Tech stack highlights: NestJS, PostgreSQL, TypeORM, JWT, class-validator, Docker readiness.
• Key features: user registration/auth, CRUD for posts, commenting, RBAC, validation, error handling.