Skip to content

This repository contains a web application built to handle task creation in card form

Notifications You must be signed in to change notification settings

ezeisraeljohn/task_creation

Repository files navigation

Task Creation App

Task Creation

The Task Creation App allows users to create tasks, assign them to users, and mark tasks as completed. The app is built with Django and Django REST Framework.

Table of Contents

  1. Getting Started
  2. Installation
  3. Usage
  4. Testing
  5. API Documentation
  6. Contributing
  7. License

Getting Started

To get started with the Task Creation App, follow the instructions below to set up the project locally.

Installation

Prerequisites

  • Python 3.x
  • Node.js and npm
  • PostgreSQL or MySQL (optional, if you prefer not to use SQLite)

Steps

  1. Clone the repository:

    git clone https://github.com/ezeisraeljohn/task_creation.git
    cd task_creation
  2. Set up a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # On Windows use `.venv\Scripts\activate`
  3. Install the dependencies:

    pip install -r requirements.txt
  4. Install Node.js dependencies:

    npm install
  5. Build Tailwind CSS:

    Ensure you have npx installed (it comes with npm). Then run:

    npx tailwindcss -i ./task_creation_app/static/src/input.css -o ./task_creation_app/static/src/output.css
  6. Configure the database:

    Ensure you have a PostgreSQL or MySQL database set up. Update the database settings in the task_creation/settings.py file.

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.postgresql',
            'NAME': 'dbname',
            'USER': 'username',
            'PASSWORD': 'password',
            'HOST': 'localhost',
            'PORT': '5432',
        }
    }

    If none is available, you can still use the default SQLite database.

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': BASE_DIR / 'db.sqlite3',
        }
    }
  7. Apply the migrations:

    python manage.py makemigrations
    python manage.py migrate

    create a superuser(if you want to access the admin page)

        python manage.py createsuperuser

    and follow the prompts to create a superuser.

  8. Run the server:

    python manage.py runserver

Usage

Once the server is running, you can interact with the application's dashboard using the link http://127.0.0.1:8000/dashboard/

Testing

To run the tests, use the following command:

python manage.py test

About

This repository contains a web application built to handle task creation in card form

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published