{"id":20795081,"url":"https://github.com/mikro-orm/nestjs-realworld-example-app","last_synced_at":"2025-05-16T15:02:38.672Z","repository":{"id":37006628,"uuid":"221804092","full_name":"mikro-orm/nestjs-realworld-example-app","owner":"mikro-orm","description":"Example real world backend API built with NestJS + MikroORM","archived":false,"fork":false,"pushed_at":"2025-05-09T07:50:17.000Z","size":4430,"stargazers_count":298,"open_issues_count":4,"forks_count":76,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-09T08:38:59.773Z","etag":null,"topics":["mikro-orm","nestjs","realworld","realworld-backend"],"latest_commit_sha":null,"homepage":"https://realworld.io/","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/mikro-orm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"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},"funding":{"github":["B4nan"],"custom":"https://paypal.me/mikroorm"}},"created_at":"2019-11-14T23:21:24.000Z","updated_at":"2025-05-09T07:50:20.000Z","dependencies_parsed_at":"2024-11-06T04:18:49.231Z","dependency_job_id":"4131f7a5-6b17-4c47-894e-279affec0871","html_url":"https://github.com/mikro-orm/nestjs-realworld-example-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikro-orm%2Fnestjs-realworld-example-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikro-orm%2Fnestjs-realworld-example-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikro-orm%2Fnestjs-realworld-example-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikro-orm%2Fnestjs-realworld-example-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikro-orm","download_url":"https://codeload.github.com/mikro-orm/nestjs-realworld-example-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254553936,"owners_count":22090415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["mikro-orm","nestjs","realworld","realworld-backend"],"created_at":"2024-11-17T16:19:43.681Z","updated_at":"2025-05-16T15:02:38.591Z","avatar_url":"https://github.com/mikro-orm.png","language":"TypeScript","funding_links":["https://github.com/sponsors/B4nan","https://paypal.me/mikroorm"],"categories":[],"sub_categories":[],"readme":"# ![NestJS](project-logo.png)\n\n\u003e ### NestJS + MikroORM codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld-example-apps) API spec.\n\n\u003e Rewrite of https://github.com/lujakob/nestjs-realworld-example-app to MikroORM.\n\n----------\n\n# Getting started\n\n## Installation\n    \nInstall dependencies\n    \n    yarn\n\nCopy config file and set JsonWebToken secret key\n\n    cp src/config.ts.example src/config.ts\n    \n----------\n\n## Database\n\nThe example codebase uses [MikroORM](https://mikro-orm.io/) with a MySQL database.\n\nCopy MikroORM config example file for database settings and adjust the connection settings.\n\n    cp src/mikro-orm.config.ts.example src/mikro-orm.config.ts\n    \nNow you can start the application with `yarn start`. It will automatically\ncreate the database and run initial migration that sets up the database \nschema.\n\n----------\n\n## NPM scripts\n\n- `yarn start` - Start application\n- `yarn start:dev` - Start application in watch mode\n- `yarn test` - run Jest test runner \n- `yarn start:prod` - Build application\n\n----------\n\n## API Specification\n\nThis application adheres to the api specifications set by the [Thinkster](https://github.com/gothinkster) team. This helps mix and match any backend with any other frontend without conflicts.\n\n\u003e [Full API Spec](https://github.com/gothinkster/realworld/tree/master/api)\n\nMore information regarding the project can be found here https://github.com/gothinkster/realworld\n\n----------\n\n## Start application\n\n- `yarn start`\n- Test api by browsing to `http://localhost:3000/api/articles`\n- View automatically generated swagger api docs by browsing to `http://localhost:3000/docs`\n- Run e2e tests from the `gothinkster/realworld` repository with `yarn test:e2e`\n\n----------\n\n# Authentication\n \nThis applications uses JSON Web Token (JWT) to handle authentication. The token is passed with each request using the `Authorization` header with `Token` scheme. The JWT authentication middleware handles the validation and authentication of the token.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikro-orm%2Fnestjs-realworld-example-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikro-orm%2Fnestjs-realworld-example-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikro-orm%2Fnestjs-realworld-example-app/lists"}