{"id":13486850,"url":"https://github.com/tkosminov/nestjs-example","last_synced_at":"2025-05-16T07:03:54.384Z","repository":{"id":36743175,"uuid":"176105789","full_name":"tkosminov/nestjs-example","owner":"tkosminov","description":"NestJS example with using GraphQL (schema stitching, schema reload, dataloader, upload files, subscriptions, response cache), RabbitMQ, Redis, Websocket, JWT authentication, ESLint 9","archived":false,"fork":false,"pushed_at":"2025-01-28T07:12:57.000Z","size":1516,"stargazers_count":386,"open_issues_count":2,"forks_count":68,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-10T19:02:56.460Z","etag":null,"topics":["amqp","dataloader","graphql","graphql-yoga","jwt-authentication","nestjs","redis","schema-reload","schema-stitching","socket-io","typeorm"],"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/tkosminov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2019-03-17T13:34:06.000Z","updated_at":"2025-05-07T03:00:48.000Z","dependencies_parsed_at":"2025-05-16T07:03:51.810Z","dependency_job_id":null,"html_url":"https://github.com/tkosminov/nestjs-example","commit_stats":{"total_commits":87,"total_committers":2,"mean_commits":43.5,"dds":"0.29885057471264365","last_synced_commit":"88a8742a5be47a043dbac28de57c4f71c203ebee"},"previous_names":["timurrk/nestjs-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkosminov%2Fnestjs-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkosminov%2Fnestjs-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkosminov%2Fnestjs-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkosminov%2Fnestjs-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkosminov","download_url":"https://codeload.github.com/tkosminov/nestjs-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485053,"owners_count":22078767,"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":["amqp","dataloader","graphql","graphql-yoga","jwt-authentication","nestjs","redis","schema-reload","schema-stitching","socket-io","typeorm"],"created_at":"2024-07-31T18:00:52.072Z","updated_at":"2025-05-16T07:03:54.358Z","avatar_url":"https://github.com/tkosminov.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# NestJS-Example\n\nNestJS example with using GraphQL (schema stitching, schema reload, dataloader, upload files, subscriptions, response cache), RabbitMQ, Redis, Websocket, JWT authentication, ESLint 9\n\n## Dependencies\n\n* [NodeJS 22](https://nodejs.org/download/release/latest-v22.x/)\n* [Redis 7](https://redis.io/download/)\n* [PostgreSQL 13+](https://www.postgresql.org/download/)\n* [RabbitMQ](https://www.rabbitmq.com/download.html)\n\n## Run locally\n\n### Installation\n\n```bash\nnpm ci\n```\n\n### Run\n\n```bash\nnpm run start:dev\n```\n\n### REPL\n\n```bash\nnpm run repl:dev\n```\n\n## Run with Docker on host\n\n### Build\n\n```bash\nsudo docker build -t nestjs-example . --build-arg env=development\n```\n\n### Run\n\n```bash\nsudo docker run -d --network host nestjs-example:latest\n```\n\n### Get CONTAINER_ID\n\n```bash\nsudo docker ps -a | grep nestjs-example\n```\n\n### Open container\n\n```bash\nsudo docker exec -it $CONTAINER_ID sh\n```\n\n### Show logs\n\n```bash\nsudo docker logs $CONTAINER_ID\n```\n\n### Stop container\n\n```bash\nsudo docker stop $CONTAINER_ID\n```\n\n### Remove container\n\n```bash\nsudo docker rm $CONTAINER_ID\n```\n\n## Run with Docker Compose\n\n### Create network\n\n```bash\nsudo docker network create nestjs-example-network\n```\n\n### Run\n\n```bash\nsudo docker compose up --build\n```\n\n## Dependencies graph\n\n### Full\n\n```bash\nnpm run madge:full\n```\n\n### Circular\n\n```bash\nnpm run madge:circular\n```\n\n## Typeorm\n\n### Creating a migration file from modified entities\n\n```bash\nnpm run typeorm:generate\n```\n\n### Create an empty migration file\n\n```bash\nnpm run typeorm:create\n```\n\n### Run migrations\n\n#### Development\n\n```bash\nnpm run typeorm:run:dev\n```\n\n#### Build\n\n```bash\nnpm run typeorm:run:build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkosminov%2Fnestjs-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkosminov%2Fnestjs-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkosminov%2Fnestjs-example/lists"}