ProductManagement
This is a sample .NET Core web application for managing products with CRUD operations. It uses ASP.NET Core Web API, SQL Server, and includes Swagger documentation for easy API testing.
Install / Use
/learn @AmirAbdollahi/ProductManagementREADME
Product Management
This repository contains a sample .NET web application that demonstrates the implementation of a CRUD system for product management. It covers the software architecture, unit testing, integration testing, and includes Swagger documentation for ease of use.
Features
- CRUD Operations: Perform Create, Read, Update, and Delete actions on products.
- Swagger Documentation: Easily interact with the API endpoints using Swagger UI.
- Unit and Integration Tests: Ensure the functionality and reliability of the system through automated tests.
- ASP.NET Core: Utilizes the power of ASP.NET Core for building the web API.
- SQL Server: Backend data is stored in a SQL Server database.
Technologies Used
- Backend: ASP.NET Core
- Database: SQL Server
- Testing: xUnit (Unit Tests), integration tests
- API Documentation: Swagger
- ORM: Entity Framework Core
Setup
Prerequisites
- .NET SDK: v8.0 or higher
- SQL Server: A running SQL Server instance
- Visual Studio/Code: For easy development and debugging
Installation
- Clone the repository:
git clone https://github.com/AmirAbdollahi/ProductManagement.git
cd ProductManagement
- Restore the project dependencies:
dotnet restore
-
Set up the SQL Server database and configure the connection string in appsettings.json.
-
Apply migrations to set up the database schema:
dotnet ef database update
- Run the application:
dotnet run
Accessing the API
Once the application is running, you can navigate to the following URL to view the Swagger UI for API documentation:
http://localhost:5000/swagger
Running Tests
You can run the unit tests and integration tests with the following command:
dotnet test
Contributing
- Fork this repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
Please follow the coding standards and ensure that the tests pass before submitting a PR.
License
This project is licensed under the MIT License.
Related Skills
node-connect
347.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
