Giter VIP home page Giter VIP logo

heirarchical-todo-list-app's Introduction

Two-Do (A heirarchical todo list app)

This is a simple todo list app that allows users to create and manage heirarchical todo lists.

Demo

Here is a demo of the app on loom:

Video Demo

Technologies Used

To see the folder structure of the project, click here.

Features

  • Sign up and login
  • Create multiple todo lists
  • Create multiple tasks in each todo list
  • Create subtasks in each task
  • Create subtasks in each subtask
  • Mark tasks as complete (subtasks too)
  • Move top-level tasks to other todo lists
  • edit tasks, subtasks and todo lists
  • delete tasks, subtasks and todo lists

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

List any prerequisites, libraries, OS version, etc., needed before installing the project. For example:

  • Node.js (v14 or later)
  • npm (v6 or later)
  • Python (v3.8 or later)

Installing

Backend Setup

  1. Clone the repository:

    git clone https://github.com/Emeruem-Kennedy1/Heirarchical-Todo-List-App.git
  2. create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate
  3. Navigate to the backend directory:

    cd backend
  4. Install dependencies:

    pip install -r requirements.txt
  5. Set environment variables:

    Create a .env file in the backend directory and update the necessary environment variables.

    DATABASE_URL=your_database_url
    SECRET_KEY=your_secret_key

Frontend Setup

  1. Navigate to the frontend directory:

    cd ../frontend
  2. Install NPM packages:

    npm install
  3. Set environment variables:

    Create a .env file in the frontend directory and update the necessary environment variables.

    REACT_APP_BASE_API_URL=http://127.0.0.1:7000

Starting the Application

Running the Backend

  • In the main project directory, run the following command:

    python main.py

    This will start the backend server on http://127.0.0.1:7000.

Running the Frontend

  • In a new terminal, navigate to the frontend directory:

    npm start

    This will start the React app and should automatically open http://localhost:3000/ in your web browser.

Testing

In the project root directory, run the following command:

python -m unittest discover

Folder Structure

Heirarchical-Todo-List-App
│
├── Backend/                  # Backend API developed with Flask
│   ├── __init__.py           # Initialization of the Flask app
│   ├── auth.py               # Authentication related operations
│   ├── list.py               # Handling todo list operations
│   ├── models.py             # Database models
│   ├── readme.md             # Backend specific documentation
│   ├── requirements.txt      # Dependencies for the backend
│   └── task.py               # Task management operations
│
├── frontend/                 # Frontend developed using React
│   ├── package-lock.json     # Locked versions of npm dependencies
│   ├── package.json          # NPM package configuration
│   ├── public/               # Public assets like HTML, logo, etc.
│   │   ├── index.html        # Entry HTML file
│   │   ├── logo.png          # App logo
│   │   └── manifest.json     # Web app manifest file
│   ├── src/                  # Source files for React components
│   │   ├── App.js            # Main React application component
│   │   ├── ListAppApiclient.js # API client for backend communication
│   │   ├── components/       # Reusable React components
│   │   ├── contexts/         # React contexts for state management
│   │   ├── hooks/            # Custom React hooks
│   │   ├── index.js          # Entry point for React app
│   │   ├── theme.js          # Theme configuration for the app
│   │   └── views/            # React components for different views/pages
│   └── ...
│
├── tests/                    # Tests for the application
│   ├── __init__.py           # Initialization for tests
│   ├── test_list.py          # Tests for list operations
│   └── test_task.py          # Tests for task operations
│
├── .env                      # Environment variables
├── main.py                   # Main entry point for the Flask application
└── README.md                 # General documentation for the entire project

heirarchical-todo-list-app's People

Contributors

emeruem-kennedy1 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.