-
Notifications
You must be signed in to change notification settings - Fork 5
Development Setup
Greeniac edited this page Nov 22, 2025
·
1 revision
This guide will help you set up your development environment for FairMind.
-
Node.js: v18+ (we use
bunbut Node.js works too) - Python: 3.10+ (for backend)
- Git: Latest version
- Database: PostgreSQL (or use Docker)
git clone https://github.com/adhit-r/fairmind.git
cd fairmindcd apps/frontend-new
bun install # or npm install
bun dev # or npm run devFrontend will be available at http://localhost:1111
cd apps/backend
uv venv # Create virtual environment
source venv/bin/activate # or venv\Scripts\activate on Windows
uv pip install -r requirements.txt
python main.pyBackend will be available at http://localhost:8000
fairmind/
├── apps/
│ ├── frontend-new/ # Next.js frontend
│ ├── backend/ # FastAPI backend
│ └── ml/ # ML models and scripts
├── docs/ # Documentation
└── archive/ # Archived files
- Framework: Next.js 14+
- Language: TypeScript
- Styling: Tailwind CSS
- Package Manager: Bun (or npm)
- Framework: FastAPI
- Language: Python 3.10+
- Package Manager: uv (or pip)
cd apps/frontend-new
bun testcd apps/backend
pytestcd apps/frontend-new
bun test:e2eCreate .env files in respective directories:
NEXT_PUBLIC_API_URL=http://localhost:8000
DATABASE_URL=postgresql://user:password@localhost/fairmind
SECRET_KEY=your-secret-key
- Change port in
next.config.jsormain.py - Or kill the process using the port
- Make sure PostgreSQL is running
- Check DATABASE_URL in .env
- Run migrations if needed
- Delete
node_modulesand reinstall - Clear cache:
bun pm cache rmornpm cache clean
- Check existing issues
- Ask in GitHub Discussions
- Review documentation in
docs/folder
- Read Contributing Guide
- Check Good First Issues
- Join our community!