{"id":26387271,"url":"https://github.com/fasilofficial/nestjs-user-management","last_synced_at":"2026-05-20T15:01:49.310Z","repository":{"id":242124105,"uuid":"808741999","full_name":"fasilofficial/nestjs-user-management","owner":"fasilofficial","description":"A simple User Management REST API built with NestJS","archived":false,"fork":false,"pushed_at":"2024-05-31T18:17:28.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-31T19:44:47.639Z","etag":null,"topics":["nestjs","rest-api"],"latest_commit_sha":null,"homepage":"https://nestjs-user-management.onrender.com/api/users","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/fasilofficial.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-31T18:04:57.000Z","updated_at":"2024-05-31T19:45:02.856Z","dependencies_parsed_at":"2024-05-31T19:44:55.961Z","dependency_job_id":"01be62ff-6e66-4bb5-828d-68651c387f02","html_url":"https://github.com/fasilofficial/nestjs-user-management","commit_stats":null,"previous_names":["fasilofficial/nestjs-user-management"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasilofficial%2Fnestjs-user-management","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasilofficial%2Fnestjs-user-management/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasilofficial%2Fnestjs-user-management/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fasilofficial%2Fnestjs-user-management/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fasilofficial","download_url":"https://codeload.github.com/fasilofficial/nestjs-user-management/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243999787,"owners_count":20381425,"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":["nestjs","rest-api"],"created_at":"2025-03-17T08:30:50.885Z","updated_at":"2026-05-20T15:01:47.138Z","avatar_url":"https://github.com/fasilofficial.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Management REST API\r\n\r\nThis project is a simple User Management API built with [NestJS](https://nestjs.com/). It provides endpoints to create, read, update, and delete user records.\r\n\r\n## Table of Contents\r\n\r\n- [Installation](#installation)\r\n- [Running the Application](#running-the-application)\r\n- [API Endpoints](#api-endpoints)\r\n  - [Create a User](#create-a-user)\r\n  - [Get All Users](#get-all-users)\r\n  - [Get a User by ID](#get-a-user-by-id)\r\n  - [Update a User](#update-a-user)\r\n  - [Delete a User](#delete-a-user)\r\n- [DTOs and Validation](#dtos-and-validation)\r\n- [Service](#service)\r\n\r\n## Installation\r\n\r\n1. Clone the repository:\r\n\r\n   ```bash\r\n   git clone https://github.com/fasilofficial/nestjs-user-management.git\r\n   cd nestjs-user-management\r\n   ```\r\n\r\n2. Install dependencies:\r\n\r\n   ```bash\r\n   npm install\r\n   ```\r\n\r\n## Running the Application\r\n\r\n1. Start the development server:\r\n\r\n   ```bash\r\n   npm run start\r\n   ```\r\n\r\n2. The API will be available at `http://localhost:3000`.\r\n\r\n## API Endpoints\r\n\r\n### Create a User\r\n\r\n- **Endpoint**: `POST /api/users`\r\n- **Description**: Creates a new user.\r\n- **Request Body**:\r\n\r\n  ```json\r\n  {\r\n    \"name\": \"John Doe\",\r\n    \"email\": \"john.doe@example.com\",\r\n    \"gender\": \"MALE\"\r\n  }\r\n  ```\r\n\r\n### Get All Users\r\n\r\n- **Endpoint**: `GET /api/users`\r\n- **Description**: Retrieves all users. You can filter users by gender.\r\n- **Query Parameters**:\r\n  - `gender` (optional): Can be `MALE`, `FEMALE`, or `OTHER`.\r\n\r\n### Get a User by ID\r\n\r\n- **Endpoint**: `GET /api/users/:id`\r\n- **Description**: Retrieves a user by their ID.\r\n- **Path Parameters**:\r\n  - `id`: The ID of the user.\r\n\r\n\r\n### Update a User\r\n\r\n- **Endpoint**: `PATCH /api/users/:id`\r\n- **Description**: Updates a user by their ID.\r\n- **Path Parameters**:\r\n  - `id`: The ID of the user.\r\n- **Request Body**:\r\n\r\n  ```json\r\n  {\r\n    \"name\": \"John Doe\",\r\n    \"email\": \"john.doe@example.com\",\r\n    \"gender\": \"MALE\"\r\n  }\r\n  ```\r\n\r\n### Delete a User\r\n\r\n- **Endpoint**: `DELETE /api/users/:id`\r\n- **Description**: Deletes a user by their ID.\r\n- **Path Parameters**:\r\n  - `id`: The ID of the user.\r\n\r\n\r\n## DTOs and Validation\r\n\r\n- **CreateUserDto**: Defines the structure for creating a user.\r\n- **UpdateUserDto**: Defines the structure for updating a user.\r\n- **Validation**: Uses `ValidationPipe` to validate request data against DTOs.\r\n\r\n## Service\r\n\r\n- **UsersService**: Contains the business logic for managing users, including methods for creating, finding, updating, and deleting users.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasilofficial%2Fnestjs-user-management","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffasilofficial%2Fnestjs-user-management","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffasilofficial%2Fnestjs-user-management/lists"}