{"id":50600818,"url":"https://github.com/elvan/realworld-app-backend-typescript-nestjs-sequelize","last_synced_at":"2026-06-05T18:01:13.269Z","repository":{"id":289381491,"uuid":"971048065","full_name":"elvan/realworld-app-backend-typescript-nestjs-sequelize","owner":"elvan","description":"This codebase was created to demonstrate a fully fledged backend application built with NestJS, TypeScript, and Sequelize including CRUD operations, authentication, routing, pagination, and more.","archived":false,"fork":false,"pushed_at":"2025-04-23T00:57:15.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T01:35:00.472Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elvan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-22T23:58:38.000Z","updated_at":"2025-04-23T00:57:18.000Z","dependencies_parsed_at":"2025-04-23T01:35:06.095Z","dependency_job_id":"ef06a4d2-2954-4407-a9e4-01141ec64eec","html_url":"https://github.com/elvan/realworld-app-backend-typescript-nestjs-sequelize","commit_stats":null,"previous_names":["elvan/realworld-app-backend-typescript-nestjs-sequelize"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elvan/realworld-app-backend-typescript-nestjs-sequelize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elvan%2Frealworld-app-backend-typescript-nestjs-sequelize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elvan%2Frealworld-app-backend-typescript-nestjs-sequelize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elvan%2Frealworld-app-backend-typescript-nestjs-sequelize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elvan%2Frealworld-app-backend-typescript-nestjs-sequelize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elvan","download_url":"https://codeload.github.com/elvan/realworld-app-backend-typescript-nestjs-sequelize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elvan%2Frealworld-app-backend-typescript-nestjs-sequelize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33951164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-05T18:01:07.275Z","updated_at":"2026-06-05T18:01:13.217Z","avatar_url":"https://github.com/elvan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![RealWorld Example App](https://raw.githubusercontent.com/gothinkster/realworld/master/media/realworld.png)\n\n\u003e ### NestJS/TypeScript/Sequelize codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld) spec and API.\n\n[![RealWorld Backend](https://img.shields.io/badge/realworld-backend-%23783578.svg)](http://realworld.io)\n[![NestJS](https://img.shields.io/badge/NestJS-10.0-ea2845)](https://nestjs.com/)\n[![TypeScript](https://img.shields.io/badge/TypeScript-5.0-blue)](https://www.typescriptlang.org/)\n[![Sequelize](https://img.shields.io/badge/Sequelize-6.32-orange)](https://sequelize.org/)\n[![MySQL](https://img.shields.io/badge/MySQL-8.0-blue)](https://www.mysql.com/)\n\n### [Demo](https://demo.realworld.io/)\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;[RealWorld](https://github.com/gothinkster/realworld)\n\nThis codebase was created to demonstrate a fully fledged backend application built with **NestJS, TypeScript, and Sequelize** including CRUD operations, authentication, routing, pagination, and more.\n\nWe've gone to great lengths to adhere to the **NestJS** community styleguides \u0026 best practices.\n\nFor more information on how this works with other frontends/backends, head over to the [RealWorld](https://github.com/gothinkster/realworld) repo.\n\n# How it works\n\nThis is a backend implementation of the RealWorld spec using:\n\n- **NestJS** for API architecture and dependency injection\n- **TypeScript** for type safety and enhanced developer experience\n- **Sequelize** as the ORM for database operations\n- **MySQL** as the database engine\n- **JWT** for secure authentication\n- **Swagger** for API documentation\n\nThe application follows NestJS's modular architecture:\n\n- **Controllers**: Handle HTTP requests and define API routes\n- **Services**: Contain business logic and database operations\n- **Modules**: Group related components together\n- **DTOs**: Define data transfer objects for validation\n- **Entities**: Define database models\n- **Guards**: Protect routes with authentication\n\n# Getting started\n\n## Prerequisites\n\n- Node.js (v16+)\n- MySQL (v8.0+)\n- npm or yarn\n\n## Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/realworld-app-backend-typescript-nestjs-sequelize.git\ncd realworld-app-backend-typescript-nestjs-sequelize\n\n# Install dependencies\nnpm install\n\n# Copy environment variables file\ncp .env.example .env\n\n# Update the .env file with your MySQL connection details and JWT secret\n\n# Run database migrations\nnpm run migration:run\n\n# Start the development server\nnpm run start:dev\n```\n\nThe API will be available at `http://localhost:3000/api`.\n\n# API Overview\n\nThis API implements the RealWorld specification providing all the required endpoints:\n\n## Authentication\n\n- `POST /api/users/login` - Login for existing user\n- `POST /api/users` - Register a new user\n- `GET /api/user` - Get current user\n- `PUT /api/user` - Update user\n\n## Profiles\n\n- `GET /api/profiles/:username` - Get a profile\n- `POST /api/profiles/:username/follow` - Follow a user\n- `DELETE /api/profiles/:username/follow` - Unfollow a user\n\n## Articles\n\n- `GET /api/articles` - Get recent articles\n- `GET /api/articles/feed` - Get articles from followed users\n- `GET /api/articles/:slug` - Get an article\n- `POST /api/articles` - Create an article\n- `PUT /api/articles/:slug` - Update an article\n- `DELETE /api/articles/:slug` - Delete an article\n\n## Comments\n\n- `GET /api/articles/:slug/comments` - Get comments for an article\n- `POST /api/articles/:slug/comments` - Add comment to an article\n- `DELETE /api/articles/:slug/comments/:id` - Delete a comment\n\n## Favorites\n\n- `POST /api/articles/:slug/favorite` - Favorite an article\n- `DELETE /api/articles/:slug/favorite` - Unfavorite an article\n\n## Tags\n\n- `GET /api/tags` - Get all tags\n\n# Development Scripts\n\n```bash\n# Build the project\nnpm run build\n\n# Start the server in production mode\nnpm run start:prod\n\n# Start development server with hot-reloading\nnpm run start:dev\n\n# Run tests\nnpm run test\n\n# Run linting\nnpm run lint\n\n# Run database migrations\nnpm run migration:generate # Generate new migrations based on entity changes\nnpm run migration:run     # Run migrations\nnpm run migration:revert  # Revert the latest migration\n```\n\n# Documentation\n\nAPI documentation is available via Swagger at `/api-docs` when the server is running.\n\n# License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felvan%2Frealworld-app-backend-typescript-nestjs-sequelize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felvan%2Frealworld-app-backend-typescript-nestjs-sequelize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felvan%2Frealworld-app-backend-typescript-nestjs-sequelize/lists"}