{"id":26581898,"url":"https://github.com/smarenkov/nestjs_example","last_synced_at":"2026-04-11T00:18:18.192Z","repository":{"id":280277485,"uuid":"864486601","full_name":"smarenkov/nestjs_example","owner":"smarenkov","description":"A simple NestJS server ","archived":false,"fork":false,"pushed_at":"2025-03-02T12:29:58.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T13:28:27.740Z","etag":null,"topics":["docker","docker-compose","mongodb","nestjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smarenkov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-09-28T10:51:19.000Z","updated_at":"2025-03-02T12:30:01.000Z","dependencies_parsed_at":"2025-03-02T13:28:33.719Z","dependency_job_id":null,"html_url":"https://github.com/smarenkov/nestjs_example","commit_stats":null,"previous_names":["smarenkov/nestjs_example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarenkov%2Fnestjs_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarenkov%2Fnestjs_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarenkov%2Fnestjs_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smarenkov%2Fnestjs_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smarenkov","download_url":"https://codeload.github.com/smarenkov/nestjs_example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245072295,"owners_count":20556353,"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":["docker","docker-compose","mongodb","nestjs"],"created_at":"2025-03-23T07:33:55.811Z","updated_at":"2025-12-30T23:37:13.976Z","avatar_url":"https://github.com/smarenkov.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## NestJS example\n\nA simple NestJS server integrated with RabbitMQ, designed to save entities to MongoDB.\n\nThis repo sends a `user_created` event to RabbitMQ after saving a user in MongoDB.\n\nThis project works seamlessly with another service that receives the `user_created` events and sends notifications. Check out that repo here: [Telegram Notify](https://github.com/smarenkov/telegram_notify)\n\n### How to Launch\n\n**Create a `.env` file in the root directory**\n\nIn the root of your project directory, create a .env file with the following content:\n\n```env\nMONGODB_URL=your mongo uri\nRABBITMQ_URL=your rabbit uri\nRABBITMQ_USERS_QUEUE=users_queue\n```\n\n### Running Docker Compose with Local MongoDB\n\nIf you want to run Docker Compose and use your local MongoDB, you'll need to modify the MongoDB configuration to allow external connections.\n\n1. Open the MongoDB configuration file `mongod.conf`.\n\n2. Edit the following line to enable connections from any IP address:\n\n```yaml\nnet:\n  # Other configurations...\n  \n  # Enable connection from any IP address\n  bindIp: 0.0.0.0\n```\n\n3. Restart MongoDB\n\n### Running Docker Compose with Local RabbitMQ\n\nIf you want to run Docker Compose and use your local RabbitMQ instance, you'll need to modify the RabbitMQ configuration to specify the IP address.\n\n1. Open the RabbitMQ configuration file `rabbitmq.conf`. If it doesn't exist, create it in the RabbitMQ directory `/etc/rabbitmq/`.\n\n2. Add the following line to specify the IP address:\n\n```\nlisteners.tcp.default = [your ip address]:5672\n```\n\n3. Restart RabbitMQ\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmarenkov%2Fnestjs_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmarenkov%2Fnestjs_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmarenkov%2Fnestjs_example/lists"}