This project serves as a template for rapidly building ASP.NET Core APIs. It adopts a controller-centric design inspired by default templates but extends the foundation with various practical configurations to kickstart your API development.
- Service Registration: Pre-configured services to save your initial setup time.
- ApplicationDBContext: Already set up to allow you to start defining and using your database entities right away.
- Custom API Response: Designed to return responses in a standardized manner, making client-side handling consistent and predictable.
- Custom Extensions: Built-in extensions that make common tasks easier and your codebase cleaner.
- Error Handling: Robust error-handling mechanism in place to ensure graceful handling of unexpected issues.
- Repository Pattern: A pre-configured repository pattern setup to encourage modular and maintainable code.
- Clone the repository:
git clone https://github.com/Matthew-Oduamafu/Web.ControllerApi.Template.git
- Navigate to the project directory:
cd Web.ControllerApi.Template
- Install dependencies:
dotnet restore
- Run the application:
dotnet run
- Install the template:
dotnet new install .
The API should now be running on https://localhost:5001/
(or another assigned port).
For detailed configuration options, refer to the appsettings.json
file. Adjust as necessary to suit your development or production environment.
Contributions are welcomed! Fork the project, make your changes, and submit a pull request.
Your feedback is valuable! Open an issue for feedback, bugs, or feature requests: Issues
This project is licensed under the MIT License. Refer to the LICENSE.md file for details.