{"id":28152526,"url":"https://github.com/dcdms/nest-api","last_synced_at":"2025-05-15T05:11:44.189Z","repository":{"id":229846254,"uuid":"747830713","full_name":"dcdms/nest-api","owner":"dcdms","description":"A simple API built with NestJS and Prisma","archived":false,"fork":false,"pushed_at":"2024-06-13T12:22:39.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-21T12:23:28.544Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcdms.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-01-24T18:15:51.000Z","updated_at":"2024-06-13T12:21:50.000Z","dependencies_parsed_at":"2024-03-26T15:47:15.707Z","dependency_job_id":"9dd27ae0-d08d-4608-a860-a61e72ffc82e","html_url":"https://github.com/dcdms/nest-api","commit_stats":null,"previous_names":["dcdm3g/first-api","dcdm3g/nest-api","dcdms/nest-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdms%2Fnest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdms%2Fnest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdms%2Fnest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcdms%2Fnest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcdms","download_url":"https://codeload.github.com/dcdms/nest-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254276460,"owners_count":22043869,"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":"2025-05-15T05:11:38.565Z","updated_at":"2025-05-15T05:11:44.180Z","avatar_url":"https://github.com/dcdms.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nest API\n\nHello World! I developed this simple API just to learn how to use the [NestJS framework](https://nestjs.com).\n\nI'm sure this API has errors as I'm not that experienced in backend development. If you can give me some feedback, I would be very grateful!\n\n## Overview\n\nThe API is just a CRUD of members. Members have the following data:\n\n```ts\ninterface Member {\n  id: string // (Primary key) v4 UUID\n  name: string\n  role: string\n}\n```\n\nThe API has the following endpoints:\n\n- `/members (GET)`: Get all members.\n- `/members/:id (GET)`: Get the member matching the id.\n- `/members (POST)`: Create a member (send name and role in request body).\n- `/members/:id (PUT)`: Update the member matching the id (send name and/or role in request body).\n- `/members/:id (DELETE)`: Delete the member matching the id.\n\nThe API also has unit tests and I plan to create E2E tests later. To run the server on your machine, follow these steps:\n\n```bash\n# Clone this repository\ngit clone https://github.com/davi-costa-de-melo/nest-api\n\n# Go to the created folder\ncd nest-api\n\n# Install dependencies\npnpm i\n\n# Add environment variables\ncp .env.example .env\n\n# Start database with Docker\ndocker-compose up -d\n\n# Run migrations\npnpm dlx prisma migrate dev\n\n# Start server\npnpm start:dev\n```\n\n## Technologies Used\n\n- [NestJS](https://nestjs.com)\n- [Prisma](https://prisma.io)\n- [Jest](https://jestjs.io)\n- [TypeScript](https://typescriptlang.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcdms%2Fnest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcdms%2Fnest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcdms%2Fnest-api/lists"}