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.
- ASP.NET Core SDK
- Visual Studio or Visual Studio Code (optional)
-
Clone this repository:
git clone https://github.com/seu-usuario/gestor-de-contatos-mvc.git
-
Navigate to the project directory:
cd gestor-de-contatos-mvc
-
Configure the database connection string in the appsettings.json file:
"ConnectionStrings": { "DefaultConnection": "YourConnectionStringHere" }
-
Open the project in your development environment (Visual Studio or Visual Studio Code).
-
Open the NuGet Package Manager console and run the migration to create the database:
dotnet ef database update
-
Launch the application:
dotnet run
The application will be accessible at http://localhost:5000 (or https://localhost:5001 with HTTPS).
- 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.
Feel free to contribute improvements, bug fixes or additional features. Open an issue or submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.