Skip to content

Installation

This guide will help you set up the TaskFlow Backend for local development.

Prerequisites

Ensure you have the following installed on your machine:

  • Node.js (Latest LTS version recommended)
  • pnpm (Package manager)
  • MongoDB (Database) - Optional if using Docker
  • Infisical (Secrets Management)

Cloning the Repository

git clone https://github.com/letrome/taskflow-backend.git
cd taskflow-backend

Installing Dependencies

Install the project dependencies using pnpm:

pnpm install

Setting up Environment Variables

We use Infisical to manage secrets securely.

  1. Install the Infisical CLI:

    brew install infisical/get/infisical
    

  2. Login to Infisical:

    infisical login
    

  3. Initialize the Project: Select the existing project if prompted.

    infisical init
    

Running the Application

Start the development server with hot-reloading:

pnpm run dev

This command uses infisical run to inject environment variables and tsx watch to restart on file changes.