This is a code-first Contact Manager REST API developed in C# .NET 6. To run the application properly, please follow the instructions below.
This update introduces some important changes and enhancements to our project. Please find the details below.
- Previously, there was a mistake that prevented users from updating their email addresses using their own email addresses. This issue has been resolved, and now users can successfully update their email information.
- To improve the process of creating and updating contact information, we have made the following enhancement:
- Instead of requiring individual parameters such as Id, creationTimestamp, lastChangeTimestamp, and notifyHasBirthdaySoon, we now use the
ContactDTO
class. This change simplifies the process by allowing users to provide only the desired fields when working with contacts.
- Instead of requiring individual parameters such as Id, creationTimestamp, lastChangeTimestamp, and notifyHasBirthdaySoon, we now use the
I believe that these changes will enhance the usability and flexibility of the project. Thank you for your continued support and feedback!
Before you begin, make sure you have the following:
- .NET 6 installed on your machine.
- A PostgreSQL database server up and running.
-
Clone the repository:
git clone https://github.com/alpersarac/ContactManager.git
-
Set your connection string in
appsettings.json
:Example:
"DefaultConnection": "Host=localhost;Database=ContactManager;Username=postgres;Password=123123456"
-
Open Package Manager Console in Visual Studio (View -> Other Windows -> Package Manager Console).
-
Add a migration. Make sure you have selected
ContactManager.DataAccess
as the default project:add-migration InitialMigration
-
Run the database update command:
update-database
-
The application should now work properly.
You can test the API using Swagger.
For any questions or feedback, please contact:
Alper Sarac
- Email: alper.sarac42@gmail.com
- GitHub: alpersarac
Last updated: 10/09/2023