{"id":41235039,"url":"https://github.com/mapikit/pet-store","last_synced_at":"2026-01-23T01:02:01.213Z","repository":{"id":145703889,"uuid":"408639943","full_name":"mapikit/pet-store","owner":"mapikit","description":"petStore json for meta-system","archived":false,"fork":false,"pushed_at":"2022-01-24T23:09:52.000Z","size":11,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-02T16:36:09.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/mapikit.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}},"created_at":"2021-09-21T00:20:40.000Z","updated_at":"2021-11-07T15:30:52.000Z","dependencies_parsed_at":"2023-04-07T23:47:00.595Z","dependency_job_id":null,"html_url":"https://github.com/mapikit/pet-store","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mapikit/pet-store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapikit%2Fpet-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapikit%2Fpet-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapikit%2Fpet-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapikit%2Fpet-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mapikit","download_url":"https://codeload.github.com/mapikit/pet-store/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mapikit%2Fpet-store/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28676466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"ssl_error","status_checked_at":"2026-01-23T01:00:19.529Z","response_time":144,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-01-23T01:02:00.782Z","updated_at":"2026-01-23T01:02:01.004Z","avatar_url":"https://github.com/mapikit.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pet-Store API Meta-System\nThis project is a practical implementation of the [PetStore API](https://petstore.swagger.io) in Meta-System. You can use it as a base to create your own system or even just clone this repo and test it for fun.\n\n## Running this System\n**Requirements**\n- Having nodejs installed (12.x or greater)\n- Installing Meta-System with npm (`npm install -g meta-system`)\n- Have an instance of MongoDB running with the right credentials\n\nAfter all the requirements are met, just run `meta-system ./petstore.json` while in the root of this repo.\n\n## Setting up the Database\nWe need to have an instance of MongoDB running, and it must have an user with the right permissions and credentials. These instructions are valid only for MongoDB version 5.x or greater.\n\n1. First, install MongoDB in your system according to their [website instructions](https://docs.mongodb.com/manual/administration/install-community/).\n1. After that is done, create `mongod.conf` file to have the base configuration of your database saved and ready to go. The details on thw available parameters for that file [are here](https://docs.mongodb.com/manual/reference/configuration-options/). There is also an `example.mongod.conf` file in this repository, which you can use as a base to configure your database, just changing the needed parts.\n1. Change the `path` property on that file to a valid path in your computer.\n1. Change the `security \u003e authorization` value to `disabled`. We will enable it again after we create our user.\n1. Run your database with `mongod --config \u003c/path/to/your/config\u003e`. The part between `\u003c\u003e` is the path of your database configuration file.\n1. Open another terminal window and access your running database with the `mongosh --port 27017` command. The `port` option should match what you have set up in the other steps.\n1. Type in the command `use(\"admin\")` to switch to the Admin database. We will use this to create our database user.\n1. Type in this one line command `db.createUser({ user: \"petStore\", pwd: \"1234\", roles: [ {role: \"userAdminAnyDatabase\", db:\"admin\"}, {role:\"readWriteAnyDatabase\", db:\"admin\"} ] })`. This creates the user we will use for our server. You may change the `user` and the `pwd` values, but be sure to change them to the same value in the `dbConnectionString` value of the `petstore.json` file.\n1. Stop your database.\n1. Change `security \u003e authorization` back to `enabled`.\n1. Run your database again with `mongod --config \u003c/path/to/your/config\u003e`.\n\nEvery subsequent start of the database will not require any other change, just execute the last step of the process above.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapikit%2Fpet-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmapikit%2Fpet-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmapikit%2Fpet-store/lists"}