A .NET 7 Web API for managing users, built with scalability and maintainability in mind.
- CRUD Operations: Create, read, update, and delete users.
- Validation: Ensures proper data integrity using annotations.
- Swagger Documentation: Interactive API testing via Swagger UI.
- Containerized: Docker support for easy deployment.
- CI/CD: Automated testing and deployment using GitHub Actions.
- .NET 7 SDK
- Docker (optional)
-
Clone the repository:
git clone https://github.com/yourusername/UserManagementApi.git cd UserManagementApi
-
Restore dependencies:
dotnet restore
-
Run the application:
dotnet run --project UserManagementApi
-
Access Swagger UI at:
http://localhost:5000/swagger
-
Build the Docker image:
docker build -t usermanagementapi .
-
Run the Docker container:
docker run -d -p 8080:80 usermanagementapi
-
Access the API at:
http://localhost:8080/swagger
This project uses GitHub Actions for CI/CD, including:
- Build: Ensures the project builds successfully.
- Test: Runs unit tests.
- Deploy: Builds and pushes a Docker image to Docker Hub.
This project is licensed under the MIT License.