Permitly helps businesses that handle other people's money find out if they need a money transmitter license, and what each U.S. state requires.
This is a student demo, not legal advice.
- Risk check: describe your product, and it tells you if a license is likely.
- State map: click a state to see its bond, fees, and a link to the law.
- Chat: ask a question and get the matching section of the state's law.
Install:
- Python 3.10+ (check with
python3 --version) - Node.js 22+ (check with
node --version)
Backend
cd permitly-backend
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements-rag.txt
cp .env.example .env
python rag/cli.py ingestThen open permitly-backend/.env and change ASK_ANSWER_MODE=llm to ASK_ANSWER_MODE=extractive.
Frontend
cd ../frontend
npm install
cp .env.example .envThen open frontend/.env and change VITE_USE_MOCKS=true to VITE_USE_MOCKS=false.
Open two terminals.
Terminal 1 (backend):
cd permitly-backend
source .venv/bin/activate
uvicorn main:app --reload --port 8000Terminal 2 (frontend):
cd frontend
npm run devOpen http://localhost:8443 in your browser.
To stop, press Ctrl + C in each terminal.
| Problem | Fix |
|---|---|
| "Address already in use" | The app is already running in another terminal. Stop it with Ctrl + C first. |
| "Can't reach the server" | Make sure the backend (Terminal 1) is running. |
| Results look fake | Set VITE_USE_MOCKS=false in frontend/.env and restart the frontend. |
- Only some states have data so far. The rest show "No data".
- The chat shows law text, not written answers. For written answers, add a free
Gemini key to
permitly-backend/.envasLLM_API_KEY=...and changeASK_ANSWER_MODEtollm. - More technical details are in permitly-backend/README.md.