/ustm-contact-management

This is a sample project of a contact management application developed in ASP.NET Core MVC. It allows you to add, view, edit and delete contacts in a database.

Primary LanguageC#MIT LicenseMIT

ASP.NET Core MVC Contact Manager

This is a sample project of a contact management application developed in ASP.NET Core MVC. It allows you to add, view, edit and delete contacts in a database.

System Requirements

Settings

  1. Clone this repository:

    git clone https://github.com/seu-usuario/gestor-de-contatos-mvc.git
    
  2. Navigate to the project directory:

    cd gestor-de-contatos-mvc
    
  3. Configure the database connection string in the appsettings.json file:

    "ConnectionStrings": {
        "DefaultConnection": "YourConnectionStringHere"
    }
    
  4. Open the project in your development environment (Visual Studio or Visual Studio Code).

  5. Open the NuGet Package Manager console and run the migration to create the database:

    dotnet ef database update
    
  6. Launch the application:

    dotnet run
    

The application will be accessible at http://localhost:5000 (or https://localhost:5001 with HTTPS).

Usage

  • Go to the home page to view the contact list.
  • Click "Add" to create a new contact.
  • Click a contact in the list to view and edit their information.
  • On the preview page, you can edit the information or delete the contact.

Contribution

Feel free to contribute improvements, bug fixes or additional features. Open an issue or submit a pull request with your changes.

License

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