{"id":21254157,"url":"https://github.com/luc-ribeiro/gympass-solid-node","last_synced_at":"2026-04-15T14:02:50.341Z","repository":{"id":237518620,"uuid":"794621674","full_name":"luc-ribeiro/gympass-solid-node","owner":"luc-ribeiro","description":"Aplicação para check-ins em academias. Aplicando conceitos de SOLID, Design Patterns, Docker, JWT e Refresh Token, RBAC e outros.","archived":false,"fork":false,"pushed_at":"2024-05-01T16:21:17.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-02T10:54:34.435Z","etag":null,"topics":["ci-cd","docker","fastify","nodejs","prisma","typescript","vitest","zod"],"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/luc-ribeiro.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":"2024-05-01T15:51:55.000Z","updated_at":"2024-05-02T10:54:58.526Z","dependencies_parsed_at":"2024-05-02T10:54:41.066Z","dependency_job_id":"9c4254bd-8c0c-4369-b839-c3e564a3b553","html_url":"https://github.com/luc-ribeiro/gympass-solid-node","commit_stats":null,"previous_names":["luc-ribeiro/gympass-solid-node"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luc-ribeiro%2Fgympass-solid-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luc-ribeiro%2Fgympass-solid-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luc-ribeiro%2Fgympass-solid-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luc-ribeiro%2Fgympass-solid-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luc-ribeiro","download_url":"https://codeload.github.com/luc-ribeiro/gympass-solid-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243690174,"owners_count":20331729,"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":["ci-cd","docker","fastify","nodejs","prisma","typescript","vitest","zod"],"created_at":"2024-11-21T03:54:26.343Z","updated_at":"2025-10-26T20:06:55.827Z","avatar_url":"https://github.com/luc-ribeiro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\nGymPass API SOLID Node.js\n\u003cbr\u003e\n\u003cbr\u003e\n\u003c/h1\u003e\n\n\u003cdiv align=\"right\"\u003e\n    Clique \u003ca href=\"https://github.com/luc-ribeiro/gympass-solid-node/blob/main/README-PTBR.md\"\u003eaqui\u003c/a\u003e para ver a versão em Português.\n\u003c/div\u003e\n\u003cbr\u003e\n\n## 💻 Project\nThe project involves creating a REST API for gym check-ins, applying **SOLID and Design Patterns** concepts. It uses technologies like **Fastify, Prisma ORM, Vitest, and Docker**.\nThe goal is to practice creating APIs using these concepts and technologies, and also emphasize the importance of **building a well-structured and easily maintainable application**.\n\n## 🚀 Technologies\n\n- **Node.js** \n- **TypeScript**\n- **Fastify**\n- **Prisma ORM**\n- **Docker**\n- **Vitest**\n- **CI/CD**\n- **Zod**\n- **PostgreSQL**\n\n## :pencil: Concepts\n\n- **SOLID**\n- **E2E and Unit Tests**\n- **TDD**\n- **Design Patterns**: Factory, Adapter, Repository\n- **InMemoryTestDatabase**\n- **RBAC**\n- **Refresh Token**\n\n## :page_facing_up: How to Use\n\n- Clone this repository:\n\n```sh\n  $ git clone https://github.com/luc-ribeiro/gympass-solid-node.git\n```\n\n- Install the dependencies:\n\n```sh\n  # with npm\n  $ npm install\n\n  # with yarn\n  $ yarn install\n```\n\n- Create a ```.env``` file following the structure of ```.env.example```\n\n- It's important that the Database URL is the same as in the ```docker-compose.yaml``` file, or vice versa\n\n- Run Docker Compose to start the container with the Database:\n\n```sh\n  $ docker compose up\n```\n\n- Run the migrations:\n\n```sh\n  # with npm\n  $ npx prisma db push\n\n  # with yarn\n  $ yarn prisma db push\n```\n\n- Run the project:\n\n```sh\n  # with npm\n  $ npm run dev\n\n  # with yarn\n  $ yarn dev\n```\n\n- The project will run on `localhost:3333`\n\n- To visualize the Database:\n\n```sh\n  # with npm\n  $ npx prisma studio\n\n  # with yarn\n  $ yarn prisma studio\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluc-ribeiro%2Fgympass-solid-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluc-ribeiro%2Fgympass-solid-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluc-ribeiro%2Fgympass-solid-node/lists"}