Skip to content

Latest commit

 

History

History
78 lines (58 loc) · 1.41 KB

setup_guide.md

File metadata and controls

78 lines (58 loc) · 1.41 KB

docs/setup_guide.md

This document provides step-by-step instructions on how to set up the project.

# Setup Guide

## Prerequisites

- Python 3.8 or later
- Node.js 14 or later
- npm (Node Package Manager)
- Git

## Setting Up the Backend

1. **Clone the Repository**
   ```bash
   git clone https://github.com/yourusername/InsightCode.git
   cd InsightCode
  1. Create and Activate a Virtual Environment

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  2. Install Backend Dependencies

    pip install -r backend/requirements.txt
  3. Set Up Environment Variables

    Copy config/settings.py to config/.env and configure the necessary environment variables.

  4. Run Migrations and Start the Backend

    cd backend
    python run.py

Setting Up the Frontend

  1. Navigate to the Frontend Directory

    cd frontend
  2. Install Frontend Dependencies

    npm install
  3. Run the Frontend Application

    npm start

Running Tests

To run backend tests:

cd backend
pytest

To run frontend tests:

cd frontend
npm test

Deploying the Application

Refer to the CI/CD documentation for deployment instructions using GitHub Actions or Jenkins.

For more details, check the README.md file for additional information.