GithubHelp home page GithubHelp logo

todo-list's Introduction

To-Do List Application

Overview

The To-Do List application is a well-structured project that allows users to efficiently manage tasks.

Demo

React.App.-.InPrivate.-.Microsoft.Edge.2023-09-29.20-30-37.mp4

Technologies Used

  • TypeScript
  • React
  • Docker
  • NestJS

Features

Frontend (React + TypeScript)

  • User Interface:
    • Task list display.
    • Text field for entering new tasks.
    • Button for adding new tasks.
    • Delete button and checkbox for each task to mark as completed.
  • Functionality:
    • Add new tasks to the list.
    • Delete tasks from the list.
    • Visually cross out tasks marked as completed.
  • Unit Tests:
    • Test for adding a new task.
    • Test for deleting a task.
    • Test for marking a task as completed.

Backend (NestJS + TypeScript)

  • Endpoints:
    • POST /tasks for adding a new task.
    • DELETE /tasks/:id for deleting a task.
    • PATCH /tasks/:id for updating a task (marking as completed).
  • Data Model:
    • Task: { id: number, content: string, done: boolean }
  • Unit Tests:
    • Test for the POST endpoint (adding a task).
    • Test for the DELETE endpoint (deleting a task).
    • Test for the PATCH endpoint (updating a task).

Docker

Both frontend and backend parts of the application come with Dockerfile configurations, allowing for containerization. A docker-compose.yml file is included for seamless orchestration of both services.

Getting Started

Prerequisites

  • Docker installed on your machine.
  • Docker Compose for multi-container orchestration (usually bundled with Docker Desktop).

Installation

  1. Clone this repository:

    git clone https://github.com/abenteuerzeit/todo-list

  2. Navigate to the project directory:

    cd todo-list

Running the Application

  1. Build and start the containers:

    docker-compose up --build

  2. Once the containers are up and running, you can access:

  • Frontend: http://localhost:3001
  • Backend API: http://localhost:3000

To stop the services:

docker-compose down

API Details

Endpoints

The backend service provides the following main endpoints:

  • POST /tasks: Adds a new task.
  • DELETE /tasks/:id: Deletes a task by ID.
  • PATCH /tasks/:id: Updates a task by ID.

Data Transfer Objects (DTOs)

  • CreateTaskDto: Used when creating a new task, contains the content and done fields.
  • UpdateTaskDto: Used when updating a task, contains the done field.

todo-list's People

Contributors

abenteuerzeit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.