Repository navigation
Developer Setup
Oussama Elhadji edited this page Oct 25, 2026
·
2 revisions
- Python 3.10+ (tested through 3.14)
- Node.js 18+ (tested on Node 20+)
- npm 9+
git clone https://github.com/Bosaj/moroccan-law-ai.git
cd moroccan-law-ai
# Python standard library is used for zero-dependency backend!
# Optional: create a virtual environment
python -m venv .venv
# Windows: .venv\Scripts\activatepython src/download_laws.pycd web
npm install
npm test # Run Vitest test suite (7 tests)
npm run typecheck # Check TypeScript
npm run build # Build production bundle to web/dist/
cd ..python server.py
# -> Open http://localhost:8090python -m unittest discover -s tests -p "test_*.py" -vcd web
npm testMoroccan Law AI Legal Q&A Assistant Documentation — Maintained by @Bosaj