Instructions to Run the Application To run the application, you have two options for setting up the database connection:
Option 1: Using Docker Compose
- Create a .env file in the root of the project directory.
- Copy the contents from the example.env file and paste it into the newly created .env file and replace plaseholders by your data.
- Run the application using Docker Compose: docker-compose up --build
Option 2: Configuring Database Connection For Manual Start
- Open the appsettings.Development.json file.
- Locate the "Database" section and modify the ConnectionString as follows: "Database": { "ConnectionString": "Server=YOUR_SERVER;Username=YOUR_USERNAME;Password=YOUR_PASSWORD;Port=YOUR_PORT;Database=YOUR_DATABASE" } Replace YOUR_SERVER, YOUR_USERNAME, YOUR_PASSWORD, YOUR_PORT, and YOUR_DATABASE with the appropriate values for your database.
- Run the application using your preferred method (e.g., via Visual Studio or dotnet run).
ENDPOINTS: GET /api/todos - Get All Todo’s GET /api/todos/{id} - Get Specific Todo GET /api/todos/expiry?from={DATETIME}&to={DATETIME} (yyyy-MM-ddTHH:mm:ssZ) - Get Incoming ToDo (for today/next day/current week) POST /api/todos/ + { "Title": "Tite", "Description": "Description", "ExpiryDate": "2025-01-01T23:59:00Z" } - Create Todo PUT /api/todos/{id} + { "Title": "Tite", "Description": "Description", "ExpiryDate": "2025-01-01T23:59:00Z" } - Update Todo PATCH /api/todos/{id}/completion?completionPercentage=0 - Set Todo percent complete PATCH /api/todos/{id}/mark_done - Mark Todo as Done DELETE /api/todos/{id} - Delete Todo