{"id":18588093,"url":"https://github.com/peimelo/memorization_game","last_synced_at":"2026-04-18T00:02:17.429Z","repository":{"id":84827820,"uuid":"337576631","full_name":"peimelo/memorization_game","owner":"peimelo","description":"Memorization game is for you to test your knowledge by dragging the items to their proper places.","archived":false,"fork":false,"pushed_at":"2022-02-20T13:38:06.000Z","size":581,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T13:22:40.613Z","etag":null,"topics":["angular","material","memorization-game","ruby-on-rails"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/peimelo.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":"2021-02-10T00:39:11.000Z","updated_at":"2024-07-28T07:41:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"660e4712-98cc-40f3-a7fc-465da5afcbdf","html_url":"https://github.com/peimelo/memorization_game","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/peimelo/memorization_game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fmemorization_game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fmemorization_game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fmemorization_game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fmemorization_game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peimelo","download_url":"https://codeload.github.com/peimelo/memorization_game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peimelo%2Fmemorization_game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31950891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["angular","material","memorization-game","ruby-on-rails"],"created_at":"2024-11-07T00:44:39.601Z","updated_at":"2026-04-18T00:02:17.401Z","avatar_url":"https://github.com/peimelo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Memorization Game\n\nMemorization game is for you to test your knowledge by dragging the items to their proper places.\n\nThis project was built with [Ruby on Rails](https://rubyonrails.org/) as API and [Angular](https://angular.io/) as frontend.\n\n## Backend\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eRuby\u003c/td\u003e\n    \u003ctd\u003e\n      3.0.3\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eRails\u003c/td\u003e\n    \u003ctd\u003e\n      6.1.4.6\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eDatabase\u003c/td\u003e\n    \u003ctd\u003e\n      PostgreSQL\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nThe [ancestry](https://github.com/stefankroes/ancestry) gem is responsible for creating\nthe tree when a file is imported and when we `GET /api/categories/:id`.\n\n## Configuration\n\n```bash\ngit clone https://github.com/peimelo/memorization_game.git\ncd memorization_game\n\n# installation of dependencies\nbundle install\n\n# creation of database and tables\nrails db:create\nrails db:migrate\n\n# run the project\nrails s\n```\n\nThe backend will be available in `http://localhost:3000`.\n\n## Configuration for Production\n\n```bash\n# delete the config/credentials.yml.enc file\nrm config/credentials.yml.enc\n\n# run the command to create credentials and master key (replace 'code' if you don't use VSCode)\nEDITOR=\"code --wait\" bin/rails credentials:edit\n```\n\nAdd the information below in the [credentials](https://guides.rubyonrails.org/security.html#custom-credentials) to configure:\n\n- `token`: used for the `update`, `destroy` and `import` actions of\n  [`CategoriesController`](/app/controllers/api/categories_controller.rb).\n  Add a token with at least 10 characters in the `Authorization` header.\n  You can use some client api for these actions, for example, [Insomnia](https://insomnia.rest).\n- `gmail(user_name/password)`: Information from your email provider used by\n  [Exception Notification](https://github.com/smartinez87/exception_notification) gem\n  to send an exception notification if an error occurs.\n- `exception_recipients`: Email address that will receive notification if an application error occurs.\n\n```yml\n# ... your content above\n\ntoken: your_token_with_at_least_10_characters\n\ngmail:\n  user_name: your@gmail.com\n  password: your_password\n\nexception_recipients: exceptions@example.com\n```\n\nSave and close the `config/credentials.yml.enc` file.\n\nIf you want to use another email provider, change it in the file\n`config/environments/production.rb`.\n\nTo configure [Exception Notification](https://github.com/smartinez87/exception_notification), change it in the file\n`config/initializers/exception_notification.rb`.\n\nTo configure [CORS](https://github.com/cyu/rack-cors) `origins`, change it in the file\n`config/initializers/cors.rb`.\n\n## API Endpoint\n\n| Endpoints                        | Usage                                                               | Params                     |\n| -------------------------------- | ------------------------------------------------------------------- | -------------------------- |\n| `GET /api/categories`            | Get all of the categories.                                          |                            |\n| `GET /api/categories/:id`        | Get the details of a single category.                               |                            |\n| \\* `PUT /api/categories/:id`     | Edit the details of an existing category.                           | **name**: [String]         |\n| \\* `DELETE /api/categories/:id`  | Remove the category.                                                |                            |\n| \\* `POST /api/categories/import` | Import a file that will mount the tree used by a memorization game. | **file**: [Multipart Form] |\n\n\\*This endpoint needs the `Authorization` header.\n\nSome examples of files to import in [db/data](/db/data) folder.\n\n## Frontend\n\nThe frontend source code is inside the [frontend](/frontend) folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeimelo%2Fmemorization_game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeimelo%2Fmemorization_game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeimelo%2Fmemorization_game/lists"}