{"id":15595577,"url":"https://github.com/cdimascio/mongoose-compose-example","last_synced_at":"2026-04-15T14:04:02.486Z","repository":{"id":83296702,"uuid":"116090338","full_name":"cdimascio/mongoose-compose-example","owner":"cdimascio","description":"An example to quickly get your up and running with Mongoose and MongoDB on IBM Compose.io.","archived":false,"fork":false,"pushed_at":"2018-01-03T05:13:16.000Z","size":3,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T11:33:21.729Z","etag":null,"topics":["compose","mongo","mongodb","mongoose","node-js"],"latest_commit_sha":null,"homepage":"https://medium.com/@cdimascio/mongoose-and-ibm-compose-io-b0ccc715f539","language":"JavaScript","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/cdimascio.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":"2018-01-03T04:14:36.000Z","updated_at":"2020-01-29T01:14:05.000Z","dependencies_parsed_at":"2023-07-01T15:45:33.119Z","dependency_job_id":null,"html_url":"https://github.com/cdimascio/mongoose-compose-example","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"f313a3309ac15ffa6cdbf9d3b62a9b368135d60d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cdimascio/mongoose-compose-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fmongoose-compose-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fmongoose-compose-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fmongoose-compose-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fmongoose-compose-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdimascio","download_url":"https://codeload.github.com/cdimascio/mongoose-compose-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fmongoose-compose-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265895964,"owners_count":23845414,"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":["compose","mongo","mongodb","mongoose","node-js"],"created_at":"2024-10-03T01:00:43.730Z","updated_at":"2026-04-15T14:04:02.457Z","avatar_url":"https://github.com/cdimascio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongoose-compose-example\n\nAn example to quickly get your up and running with MongoDB on IBM Compose.io. \n\nThis example shows how to use a custom MongoDB database, instead of the default `admin` db.\n\n## Setup\n\n1. In the project root, create the file `mongo.cert` \n2. Populate `mongo.cert` with your Compose.io MongoDB certificate\n3. Open `index.js`\n4. Update line 9 with your MongoDB url.\n\n\t**Note** When using Mongoose, the default Compose.io MongoDB connection string only works with the `admin` db. To use a custom db, you must restructure the connection string according the the format described in [the code](/index.js) and below.\n\t\n\t**URL Format** \n\t\n\t```shell\n\t\tmongodb://admin:admin@host1.com:27018,host2:27018/myDb?ssl=true\u0026authSource=admin\n\t```\n\t\n5. Execute `node index`\n\n**Star** this repo if this helps\n\nHappy coding!\n\n# License \nMIT ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdimascio%2Fmongoose-compose-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdimascio%2Fmongoose-compose-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdimascio%2Fmongoose-compose-example/lists"}