{"id":23107576,"url":"https://github.com/emanoelhenrick/gym-api","last_synced_at":"2026-05-09T04:32:52.789Z","repository":{"id":165637946,"uuid":"632578264","full_name":"emanoelhenrick/Gym-API","owner":"emanoelhenrick","description":"Um sistema de gerenciamento de check-in de academia construído em Node.js, inspirado no sistema GymPass.","archived":false,"fork":false,"pushed_at":"2023-05-17T17:29:10.000Z","size":1052,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T22:43:39.004Z","etag":null,"topics":["last","postgresql","rest-api","typescript"],"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/emanoelhenrick.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":"2023-04-25T17:43:57.000Z","updated_at":"2024-12-23T21:09:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"eed899df-8e04-4fdc-9371-121926bf8424","html_url":"https://github.com/emanoelhenrick/Gym-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"emanoelhenrick/ts-template","purl":"pkg:github/emanoelhenrick/Gym-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanoelhenrick%2FGym-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanoelhenrick%2FGym-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanoelhenrick%2FGym-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanoelhenrick%2FGym-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emanoelhenrick","download_url":"https://codeload.github.com/emanoelhenrick/Gym-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanoelhenrick%2FGym-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32807214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["last","postgresql","rest-api","typescript"],"created_at":"2024-12-17T01:14:26.160Z","updated_at":"2026-05-09T04:32:52.767Z","avatar_url":"https://github.com/emanoelhenrick.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Running locally.\n\nClone the project\n\n```bash\n  git clone https://github.com/emanoelhenrick/Gym-API.git\n```\n\nEnter the project directory\n\n```bash\n  cd Gym-API\n```\n\nInstall the dependencies\n\n```bash\n  npm install\n```\n\nSet the environment variables using the .env.example file as a guide and configure the docker compose file, then bring up the database container\n\n```bash\n  docker compose up\n```\n\nRun migrations\n\n```bash\n  npx prisma migrate dev\n```\n\nFor development, start the server\n\n```bash\n  npm run dev\n```\n\nFor production, build first\n\n```bash\n  npm run build\n```\n\nAnd then start the server\n\n```bash\n  npm start\n```\n\n## Node.js Gym Check-in Management Backend\n\nA gym check-in management system built using Node.js, inspired by the GymPass app.\nIt offers the following key functionalities:\n\n1. **User Registration and Authentication:**\n   - Users can register and log in securely using email and password.\n\n2. **User Profile and Check-in Information:**\n   - Logged-in users can access their profile and view their check-in count.\n\n3. **Check-in History:**\n   - Users can retrieve their check-in history, including details of previous check-ins.\n\n4. **Gym Search:**\n   - Users can search for nearby gyms based on their location or by name.\n\n5. **Check-in Process:**\n   - Users can check in at a gym, with validation ensuring proximity within 100m.\n   - Duplicate check-ins on the same day are prevented.\n\n6. **Gym Registration:**\n   - Admin users can register new gyms within the system.\n\n## Key Business Rules\n\n- Unique email addresses are required for user registration.\n- Users must be within 100m of a gym to check in.\n- Check-ins can only be validated by admins within 20 minutes of creation.\n- Only admins can register new gyms.\n\n## Non-Functional Requirements\n\n- User passwords are encrypted for security.\n- Application data is stored and retrieved from a PostgreSQL database.\n- Data lists, such as check-in history, are paginated with 20 items per page.\n- User identification is performed using JSON Web Tokens (JWT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanoelhenrick%2Fgym-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femanoelhenrick%2Fgym-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanoelhenrick%2Fgym-api/lists"}