{"id":15395638,"url":"https://github.com/jusemon/reflex-api","last_synced_at":"2025-07-12T12:04:16.157Z","repository":{"id":174566518,"uuid":"652334709","full_name":"jusemon/reflex-api","owner":"jusemon","description":"A simple API to save and get RefleX higher scores","archived":false,"fork":false,"pushed_at":"2024-10-04T17:25:03.000Z","size":108,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T08:15:25.812Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jusemon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-06-11T20:23:21.000Z","updated_at":"2024-10-04T17:25:07.000Z","dependencies_parsed_at":"2024-10-19T03:27:30.800Z","dependency_job_id":null,"html_url":"https://github.com/jusemon/reflex-api","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"d08780aebafa23695dbd645e2e2741c6fa482fd1"},"previous_names":["jusemon/reflex-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jusemon%2Freflex-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jusemon%2Freflex-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jusemon%2Freflex-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jusemon%2Freflex-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jusemon","download_url":"https://codeload.github.com/jusemon/reflex-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245600431,"owners_count":20642298,"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":[],"created_at":"2024-10-01T15:29:01.983Z","updated_at":"2025-03-26T06:25:43.302Z","avatar_url":"https://github.com/jusemon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RefleX API\n\nAn API for save and get the top 10 scores of the\n[RefleX](https://github.com/jusemon/reflex) game.\n\n## Requirements\n\n- Last stable version of MySQL (8 or greater)\n- A PC with node.js (16 or greater) or docker\n\n## Installation\n\nFor run locally it needs a `.env` file with the environment variables defined in\nthe `.env.example`\n\nThe database scripts are under the scripts folder, please run them in order.\n\n### Development\n\nALLOWED_ORIGINS includes a comma-separated list of the allowed CORS sites.\n\nInstall dependencies `npm install` or `yarn` To start the project run\n`npm run dev` or `yarn dev`\n\n### Production\n\nFor run it in docker just run `docker compose up`\n\nAlternatively, you can run the image without cloning this repo using the image\npublished\n[here](https://git.jusemon.com/jusemon/-/packages/container/reflex-api/1.0.0)\n\nWith docker run (replace ${ENV_VARIABLE} with your values):\n\n```sh\ndocker run -p ${PORT}:${PORT} -e NODE_ENV=${NODE_ENV} -e HOST=${HOST} -e PORT=${PORT} -e API_VERSION=${API_VERSION} -e ALLOWED_ORIGINS=${ALLOWED_ORIGINS} -e DB_HOST=${DB_HOST} -e DB_DATABASE=${DB_DATABASE} -e DB_USER=${DB_USER} -e DB_PASSWORD=${DB_PASSWORD} -e DB_PORT=${DB_PORT} -e COUNTRY_SERVICE=${COUNTRY_SERVICE} git.jusemon.com/jusemon/reflex-api:1.0.0\n```\n\nWith docker compose (the ${ENV_VARIABLE} will be taken from the .env\nautomatically):\n\n```yaml\nname: reflex\nservices:\n  api:\n    image: git.jusemon.com/jusemon/reflex-api:1.0.0\n    ports:\n      - ${PORT}:${PORT}\n    environment:\n      NODE_ENV: ${NODE_ENV}\n      HOST: ${HOST}\n      PORT: ${PORT}\n      API_VERSION: ${API_VERSION}\n      ALLOWED_ORIGINS: ${ALLOWED_ORIGINS}\n      DB_HOST: ${DB_HOST}\n      DB_DATABASE: ${DB_DATABASE}\n      DB_USER: ${DB_USER}\n      DB_PASSWORD: ${DB_PASSWORD}\n      DB_PORT: ${DB_PORT}\n      COUNTRY_SERVICE: ${COUNTRY_SERVICE}\n```\n\n## Libraries Used\n\n- koa (for api rest)\n- mysql2 (for database operations)\n\n## Credits\n\n- Created by Juan Sebastián Montoya\n\n## License\n\nThis project is licensed under the\n[MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjusemon%2Freflex-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjusemon%2Freflex-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjusemon%2Freflex-api/lists"}