intelliHR-AI is an AI-powered platform designed to enhance HR processes through automation, analytics, and intelligent decision-making. The project is structured for scalability and maintainability, following best practices in Python application development.
intelliHR-AI/
├── agents/ # AI agents and related logic
├── app/ # Main application code
│ ├── main.py # Application entry point
│ ├── models/ # Data models
│ ├── routes/ # API routes
│ ├── services/ # Business logic/services
│ └── utils/ # Utility functions
├── config/ # Configuration files
├── tests/ # Unit and integration tests
├── requirements.txt# Python dependencies
├── env_example # Example environment variables
├── README.md # Project documentation
- Python 3.8+
- pip (Python package manager)
-
Clone the repository:
git clone <repo-url> cd intelliHR-AI
-
Create a virtual environment:
python3 -m venv venv # On Windows PowerShell .\venv\Scripts\Activate.ps1 # On Windows CMD .\venv\Scripts\activate.bat # On Unix or MacOS source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment variables:
- Copy
env_exampleto.envand update values as needed.
- Copy
The server uses FastAPI for the backend. To run the development server, use uvicorn:
# Run on default port 8000
uvicorn app.main:app --reload
# Run on a custom port (e.g., 8080)
uvicorn app.main:app --reload --port 8080This will start the FastAPI server with auto-reload enabled for development. By default, the server will be available at http://127.0.0.1:8000 or your chosen port (e.g., http://127.0.0.1:8080).
- Swagger UI: http://127.0.0.1:8000/docs
- ReDoc: http://127.0.0.1:8000/redoc
pytest -vBuild the Docker image for a specific environment (dev, stage, prod):
# Development
docker build -t intellihr-ai-dev --build-arg ENVIRONMENT=dev .
# Staging
docker build -t intellihr-ai-stage --build-arg ENVIRONMENT=stage .
# Production
docker build -t intellihr-ai-prod --build-arg ENVIRONMENT=prod .Run the container for the chosen environment:
# Development
docker run -p 9090:2001 intellihr-ai-dev
# Staging
docker run -p 9090:2001 intellihr-ai-stage
# Production
docker run -p 9090:2001 intellihr-ai-prod- Ensure Python 3.8+ is installed.
- For any missing dependencies, add them to
requirements.txtand re-run the install step. - For development, use the
--reloadflag with Uvicorn for auto-reload.
- Fork the repository
- Create a new branch (
git checkout -b feature/your-feature) - Commit your changes
- Push to the branch (
git push origin feature/your-feature) - Open a pull request
This project is licensed under the MIT License.