{"id":24149006,"url":"https://github.com/mochrks/crud-api-netcore","last_synced_at":"2025-10-29T13:39:35.039Z","repository":{"id":266005549,"uuid":"805160249","full_name":"Mochrks/crud-api-netcore","owner":"Mochrks","description":"This repository contains a sample project for building a CRUD (Create, Read, Update, Delete) API using .NET Core. It demonstrates how to set up a RESTful API with essential CRUD operations, designed for developers looking to learn or implement a robust and scalable API using .NET Core technologies.","archived":false,"fork":false,"pushed_at":"2024-12-02T02:27:57.000Z","size":18451,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T08:36:01.661Z","etag":null,"topics":["netcore","postgresql"],"latest_commit_sha":null,"homepage":"","language":"C#","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/Mochrks.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-24T02:16:43.000Z","updated_at":"2024-12-07T08:26:52.000Z","dependencies_parsed_at":"2024-12-02T03:37:23.088Z","dependency_job_id":null,"html_url":"https://github.com/Mochrks/crud-api-netcore","commit_stats":null,"previous_names":["mochrks/crud-api-netcore"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mochrks%2Fcrud-api-netcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mochrks%2Fcrud-api-netcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mochrks%2Fcrud-api-netcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mochrks%2Fcrud-api-netcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mochrks","download_url":"https://codeload.github.com/Mochrks/crud-api-netcore/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241397999,"owners_count":19956644,"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":["netcore","postgresql"],"created_at":"2025-01-12T08:34:44.051Z","updated_at":"2025-09-21T11:06:37.392Z","avatar_url":"https://github.com/Mochrks.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003e.NET Core CRUD API - Order, Product, User\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/.NET_Core-8.0-blueviolet\" alt=\".NET Core Version\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Swagger-Enabled-brightgreen\" alt=\"Swagger Enabled\" /\u003e\n  \n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://skillicons.dev/icons?i=dotnet,postgresql\" alt=\"Tech Stack Icons\" /\u003e\n\u003c/p\u003e\n\n## Overview\n\nThis is a **CRUD API** built with **.NET Core** to manage **Orders**, **Products**, and **Users**. The API supports creating, reading, updating, and deleting data for each of these entities. The project is designed to follow clean architecture principles, is fully documented with **Swagger**, and uses **Entity Framework Core** as the ORM for database operations.\n\n## Features\n\n- CRUD Operations for **Orders**, **Products**, and **Users**\n- RESTful API design\n- **Swagger UI** for interactive API documentation\n- **Entity Framework Core** with migrations\n- Input validation and error handling\n- **Dependency Injection** for better code maintainability\n- **JWT Authentication** for secure API access \n\n## Tech Stack\n\n- **.NET Core 8.0**\n- **Entity Framework Core** (Code-First Approach)\n- **PostgreSQL r** as the database\n- **Swagger** for API documentation\n- **JWT** for authentication\n\n## Project Structure\n\n```bash\ndotnet-crud-api/\n│\n├── Controllers/        # API Controllers for Order, Product, and User\n├── Data/               # EF Core DbContext and Migrations\n├── Models/             # Order, Product, User Models\n├── Services/           # Business logic and service layer\n├── DTOs/               # Data Transfer Objects for request/response\n├── Repositories/       # Repository pattern for data access\n└── Program.cs          # Application startup\n\n```\n## Setup \u0026 Installation\n--------------------\n\n-   **Clone the repository**\n\n    ```bash\n    git clone https://github.com/mochrks/crud-api-netcore.git\n    cd crud-api-netcore/WebApi\n\n    ```\n\n-   **Install dependencies**\n\n    ```bash\n    dotnet restore\n    ```\n\n-   **Set up the database**\n\n    -   Update your connection string in `appsettings.json`.\n    -   Run database migrations:\n    \n    ```bash\n    dotnet ef database update\n    ```\n\n-   **Run the application**\n\n    ```bash\n    dotnet run\n    ```\n\n-   **Access Swagger UI**  \n    Navigate to [http://localhost:5000/swagger](http://localhost:5000/swagger) to interact with the API documentation.\n\n\n## Connect with me:\n[![GitHub](https://img.shields.io/badge/GitHub-333?style=for-the-badge\u0026logo=github\u0026logoColor=white)](https://github.com/mochrks)\n[![YouTube](https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge\u0026logo=youtube\u0026logoColor=white)](https://youtube.com/@Gdvisuel)\n[![Instagram](https://img.shields.io/badge/Instagram-E4405F?style=for-the-badge\u0026logo=instagram\u0026logoColor=white)](https://instagram.com/mochrks)\n[![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white)](https://linkedin.com/in/mochrks)\n[![Behance](https://img.shields.io/badge/Behance-1769FF?style=for-the-badge\u0026logo=behance\u0026logoColor=white)](https://behance.net/mochrks)\n[![Dribbble](https://img.shields.io/badge/Dribbble-EA4C89?style=for-the-badge\u0026logo=dribbble\u0026logoColor=white)](https://dribbble.com/mochrks)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmochrks%2Fcrud-api-netcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmochrks%2Fcrud-api-netcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmochrks%2Fcrud-api-netcore/lists"}