Introduction

This guide is for ARC-Solutions developers who need to set up their local development environment with Infisical for secrets management. If you’re not part of ARC-Solutions, refer to the standard local development guide. Here’s the monorepo structure:
IntelliQ-V2
|-- apps
|   |-- api
|   |-- dashboard
|   |-- docs
|   |-- presentation
|   `-- web
|-- packages
|   |-- api-types
|   |-- typescript-config
|   `-- ui

Initial Setup

  1. Clone the repository:
git clone https://github.com/ARC-Solutions/IntelliQ-V2.git
cd IntelliQ-V2
  1. Install dependencies:
npm i
  1. Set up Infisical for secrets management: a. Install the Infisical CLI globally (if not already installed):
    npm install -g infisical
    
    b. Log in to Infisical:
    infisical login
    
    You will be prompted to complete the login process in your browser. Open the provided link:
    https://app.infisical.com/login?callback_port=55279
    
    Choose GitHub as the login method (you should already have been invited to the Infisical workspace).
  2. Export environment variables: For the API:
    cd apps/api
    npm run dev
    
    For the Dashboard:
    cd apps/dashboard
    npm run dev
    
  3. Configure Git to ignore local changes to sensitive files:
    git update-index --skip-worktree apps/api/wrangler.toml
    
    This step is important to prevent accidentally committing your local development configuration changes to the repository.
Written by Ricky Raveanu