-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Full back-end added
- Loading branch information
Showing
15 changed files
with
204 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@page | ||
@using TheTodoWeb.Pages; | ||
@model ErrorModel | ||
@{ | ||
ViewData["Title"] = "Error"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
@page | ||
@using TheTodoWeb.Pages; | ||
@model IndexModel | ||
@{ | ||
ViewData["Title"] = "Home page"; | ||
} | ||
|
||
<div class="text-center"> | ||
<h1 class="display-4">Welcome</h1> | ||
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p> | ||
<h1 class="display-4">Welcome to TheTodoRazerApp</h1> | ||
<p>Click to goto ToDoList</p> | ||
<p><a class="btn btn-primary" asp-page="/ToDoList">ToDoList</a></p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
@page | ||
@using TheTodoWeb.Pages; | ||
@model PrivacyModel | ||
@{ | ||
ViewData["Title"] = "Privacy Policy"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using Microsoft.AspNetCore.Mvc.RazorPages; | ||
|
||
namespace TheTodoWeb.Pages.Shared | ||
{ | ||
public class LayoutModel : PageModel | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@page | ||
@model TheTodoWeb.Pages.ToDoListModel | ||
@{ | ||
ViewData["Title"] = "ToDoList"; | ||
} | ||
|
||
<h3>ToDoList</h3> | ||
|
||
<hr /> | ||
|
||
<table class="table"> | ||
<thread> | ||
<tr> | ||
<th>Id</th> | ||
<th>Description</th> | ||
<th>Created Time</th> | ||
<th>IsCompleted</th> | ||
<th>Priory</th> | ||
</tr> | ||
</thread> | ||
<tbody> | ||
@foreach (var item in Model.ToDoItems) | ||
{ | ||
<tr> | ||
<td>@item.Id</td> | ||
<td>@item.TaskDescription</td> | ||
<td>@item.CreatedTime</td> | ||
<td>@item.IsCompleted</td> | ||
<td>@item.Priority</td> | ||
</tr> | ||
} | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Microsoft.AspNetCore.Mvc; | ||
using Microsoft.AspNetCore.Mvc.RazorPages; | ||
using TheTodoService.DataTransferObjects; | ||
using TheTodoService.Interfaces; | ||
|
||
namespace TheTodoWeb.Pages | ||
{ | ||
public class ToDoListModel : PageModel | ||
{ | ||
private readonly IToDoItemService _toDoItemService; | ||
|
||
public List<ToDoItemDto> ToDoItems = new(); | ||
|
||
public ToDoListModel(IToDoItemService toDoItemService) | ||
{ | ||
_toDoItemService = toDoItemService; | ||
} | ||
|
||
public async Task OnGet() | ||
{ | ||
ToDoItems = await _toDoItemService.GetAllAsync(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,68 @@ | ||
# TheTodoRazerApp | ||
# TodoWork | ||
|
||
## Description | ||
|
||
Todo work is a website where you can create tasks with title, description and priorities. You can complet task and se how much time used on taskes and uncomplet task. You have to be a user on the website to use its features. | ||
|
||
## The Maker | ||
Made by Christian C. Høttges | ||
|
||
Last updated: 26-09-2023 | ||
|
||
# How to Use | ||
|
||
1. Clone the repository to your local machine. | ||
2. Open the solution in Visual Studio. | ||
3. Run the application. | ||
|
||
**Requirements:** | ||
|
||
* <a href="https://code.visualstudio.com/" target="_blank">Visual Studio IDE</a> (recommend Code) to compile. | ||
* <a href="https://www.microsoft.com/en-us/sql-server/sql-server-downloads" target="_blank">Microsoft SQL</a> (recommend Express) to run the database for testing. | ||
|
||
**Technologies:** | ||
* <a href="https://learn.microsoft.com/en-us/dotnet/csharp/" target="_blank">C#</a> (back-end) | ||
* <a href="https://www.javascript.com/" target="_blank">JavaScript</a> | ||
* <a href="https://html.com/" target="_blank">Html</a> (front-end) | ||
* <a href="https://www.w3schools.com/css/" target="_blank">CSS</a> | ||
* <a href="" target="_blank">Bootstrap</a> (front-end styling) | ||
* <a href="https://www.microsoft.com/en-us/sql-server/sql-server-downloads" target="_blank">SQL</a> (data storage) | ||
|
||
|
||
# Features | ||
|
||
- **Front-end templete**: Allows users to only see the templete. | ||
- **Full back-end**: Allows users use execute all the features of the application thru the repository and services. | ||
- **Repository pattern**: Allows users to use the repository pattern to get data from the database. | ||
- **Service pattern**: Allows users to use the service pattern to get data from the repository. | ||
|
||
# Updates | ||
|
||
**Version 0.0.2** (26/09/2023) - Current version | ||
- Full backend with database. | ||
- Added repository pattern and service pattern. | ||
- Added front-end handling of data from repository and service layer. | ||
|
||
**Version 0.0.1** (21/09/2023) | ||
- Initial pre-release of The Todo List Application. | ||
- Features include Front-end templete. | ||
|
||
### Upcoming features | ||
|
||
- Initial pre-release of Front-end | ||
- Creating, deleting, editing and completing tasks. | ||
|
||
### Tags | ||
- <a href="https://github.com/GuttiDK/TheTodoRazerApp/releases/tag/version-0.0.2">Full backend - v0.0.2</a> | ||
- <a href="https://github.com/GuttiDK/TheTodoRazerApp/releases/tag/version-0.0.1">Structure - v0.0.1</a> | ||
|
||
# Bugs & Known Bugs and Bug Reporting | ||
We are constantly working to improve this application. If you encounter any bugs or errors, please report them to us. | ||
|
||
|
||
## Contact Info | ||
**Phone number:** +45 28 78 34 14 | ||
**Email:** [GuttiDK@gmail.com](mailto:GuttiDK@gmail.com) | ||
|
||
## License | ||
This project is licensed under the MIT license. See the `LICENSE` file for further details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters