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
-
Create and Activate a Virtual Environment
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Backend Dependencies
pip install -r backend/requirements.txt
-
Set Up Environment Variables
Copy
config/settings.py
toconfig/.env
and configure the necessary environment variables. -
Run Migrations and Start the Backend
cd backend python run.py
-
Navigate to the Frontend Directory
cd frontend
-
Install Frontend Dependencies
npm install
-
Run the Frontend Application
npm start
To run backend tests:
cd backend
pytest
To run frontend tests:
cd frontend
npm test
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.