Git Product home page Git Product logo

task-manager's Introduction

Task Management System

task-manager-dashboard

Overview

This project is a simple web application for a task management system. The application allows users to create, view, and delete tasks. The frontend is built using Flask and Bootstrap, while the backend uses Flask and PostgreSQL. The entire application is containerized using Docker.

Installation

Prerequisites

  • Python and pip installed on your machine (for running locally).
  • Docker and Docker Compose installed on your machine (for running with Docker).

Setup

Running with Docker Compose

  1. Clone the repository

    git clone https://[email protected]/juanesgarciamar/task-manager/_git/task-manager
    cd task-manager
  2. Set up environment variables

    Create a .env file in the root directory and add the following variables:

     DB_NAME=task_manager_db
     DB_USER=postgres
     DB_PASSWORD=1234
     SECRET_KEY=my-super-secret-key
     JWT_SECRET_KEY=my-super-secret-key
  3. Build and run the Docker containers

    docker compose up --build

    This will build the Docker images and start the containers for the web application and the PostgreSQL database.

  4. Access the application

    Open your web browser and navigate to http://localhost:8000.

Running Locally

  1. Clone the repository

    git clone https://[email protected]/juanesgarciamar/task-manager/_git/task-manager
    cd task-manager/web_app
  2. Set up a PostgreSQL instance

    You can either install PostgreSQL locally or run a PostgreSQL container using Docker.

  3. Set up environment variables

    Create a .env file in the root directory and add the following variables:

     DATABASE_URL=postgresql://postgres:1234@localhost:5432/task_manager_db
     SECRET_KEY=my-super-secret-key
     JWT_SECRET_KEY=my-super-secret-key
  4. Install dependencies

    You can install dependencies using pip or poetry.

    Using pip:

    python3 -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt

    Using Poetry:

    poetry install
  5. Run the Flask application

    flask run
  6. Access the application

    Open your web browser and navigate to http://localhost:5000.

Directory Structure

Root Project Structure

task-manager/
│
├── README.md
├── azure-pipelines.yml
├── build.sh
├── docker-compose.yml
└── web_app/...

Flask Web App Structure

web_app/
│
├── Dockerfile
├── migrations/...
├── poetry.lock
├── pyproject.toml
├── requirements.txt
├── run-local.sh
├── run-prod.sh
└── src/
    ├── app/
    │   ├── __init__.py
    │   ├── auth/
    │   │   ├── constants.py
    │   │   ├── decorators.py
    │   │   ├── forms.py
    │   │   ├── helpers.py
    │   │   ├── models.py
    │   │   ├── routes.py
    │   │   ├── schemas.py
    │   │   ├── services.py
    │   │   └── views.py
    │   ├── commands.py
    │   ├── common/
    │   │   ├── error_handlers.py
    │   │   ├── exceptions.py
    │   │   └── helpers.py
    │   ├── config.py
    │   ├── constants/
    │   │   └── http_status_codes.py
    │   ├── extensions.py
    │   ├── static/...
    │   ├── tasks/
    │   │   ├── forms.py
    │   │   ├── models.py
    │   │   ├── routes.py
    │   │   ├── schemas.py
    │   │   ├── services.py
    │   │   └── views.py
    │   └── templates/...
    └── wsgi.py

License

This project is licensed under the MIT License - see the LICENSE file for details.


task-manager's People

Contributors

juanes-22 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.