Skip to content

SabbirHosen/TaskManager

Repository files navigation

Task Manager

This project is a Django-based web application using Django Rest Framework (DRF) for Task Management.

Running the Project with Docker

Prerequisites

Steps

  1. Clone the repository:

    git clone https://github.com/yourusername/yourproject.git
    cd TaskManager
  2. Build and start the Docker containers:

    docker-compose up --build -d
  3. Open your browser and navigate to http://localhost:8000.

Running the Project with Virtualenv

Prerequisites

Steps

  1. Clone the repository:

    git clone https://github.com/yourusername/yourproject.git
    cd TaskManager
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  4. Install the dependencies:

    pip install -r requirements.txt
  5. Apply migrations:

    python manage.py migrate
  6. Run the development server:

    python manage.py runserver
  7. Open your browser and navigate to http://localhost:8000.

Environment Variables

Ensure you have a .env file in the root of your project with the following content:

DATABASE_NAME=myproject
DATABASE_USER=myprojectuser
DATABASE_PASSWORD=myprojectpassword
DATABASE_HOST=db
DATABASE_PORT=5432
SECRET_KEY=your_secret_key
DEBUG=True

By following these instructions, you will have a fully functional Django project that can be run using Docker for containerized deployment or using a virtual environment for local development.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages