Skip to content

justletmepickausername/Court-Assignment-Back

Repository files navigation

.NET 8 Minimal API - Contact Form Backend

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.

Table of Contents


Features

  • 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

Requirements

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

Installation

Follow these steps to set up the project locally:

  1. Clone the repository:

    git clone https://github.com/justletmepickausername/Court-Assignment-Back.git
  2. Navigate to the project directory:

    cd CourtComplaintFormBackend
  3. Restore the project dependencies:

    dotnet restore
  4. Configure your database connection (if applicable) in appsettings.json.


Usage

To run the application locally:

dotnet run

By 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.


API Endpoints

  • 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.


Deployment

To deploy the API to production:

  1. Build the project for release:

    dotnet publish -c Release -o ./publish
  2. 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.


Contributing

We welcome contributions to this project! If you'd like to contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit them (git commit -m 'Add new feature').
  4. Push to your branch (git push origin feature-branch).
  5. Create a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published