This is the backend of the Contact Form application, built using .NET 8 Minimal API. It provides CRUD operations for managing contact form submissions from the Angular frontend.
- CRUD operations (Create, Read, Update, Delete) for managing contact form submissions
- Built using .NET 8 Minimal API
- Lightweight and fast API implementation
- Supports easy integration with an Angular frontend
Before you begin, ensure you have met the following requirements:
- .NET 8 SDK: Download .NET 8 SDK
- SQL Database (e.g., SQL Server, PostgreSQL, MySQL) for storing contact form submissions
- IDE: Visual Studio, Visual Studio Code, or any other text editor of your choice
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/justletmepickausername/Court-Assignment-Back.git
-
Navigate to the project directory:
cd CourtComplaintFormBackend -
Restore the project dependencies:
dotnet restore
-
Configure your database connection (if applicable) in
appsettings.json.
To run the application locally:
dotnet runBy default, the API will be accessible at https://localhost:5001 (for HTTPS) or http://localhost:5000 (for HTTP). You can test it using Postman, Swagger, or any HTTP client of your choice.
-
GET
/api/contact
Fetches all contact form submissions. -
GET
/api/contact/{id}
Fetches a contact form submission by its ID. -
POST
/api/contact
Creates a new contact form submission. -
PUT
/api/contact/{id}
Updates an existing contact form submission. -
DELETE
/api/contact/{id}
Deletes a contact form submission by its ID.
To deploy the API to production:
-
Build the project for release:
dotnet publish -c Release -o ./publish
-
Deploy the contents of the
publish/folder to your server or cloud service (e.g., Azure, AWS, etc.).
For more details on deploying .NET APIs, refer to the official documentation.
We welcome contributions to this project! If you'd like to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes and commit them (
git commit -m 'Add new feature'). - Push to your branch (
git push origin feature-branch). - Create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.