Prerequisites
Before installing DecipherIt, ensure you have the following installed on your system:Required Software
Node.js
Version 20 or higher required for the frontend
Python
Version 3.12 or higher required for the backend
PostgreSQL
Version 14 or higher for data storage
Docker
Optional, for containerized deployment
Package Managers
- pnpm - Fast, disk space efficient package manager for Node.js
- uv - Fast, disk space efficient package manager for Python
Installation Steps
Set Up PostgreSQL Database
Create a PostgreSQL database for DecipherIt:
Make note of your database credentials - you’ll need them for the environment variables.
Install Frontend Dependencies
Navigate to the client directory and install dependencies:This will install all required packages including:
- Next.js 15.3.2
- React 19.0.0
- Prisma for database ORM
- Better Auth for authentication
- Shadcn/ui components
Configure Frontend Environment
Copy the example environment file and configure it:Edit
.env.local with your configuration. See the Environment Variables page for details.Generate Prisma Client and Run Migrations
Generate the Prisma client and set up the database schema:This creates the necessary database tables and relationships.
Install Backend Dependencies
Navigate to the backend directory and set up the Python environment:This installs all required packages including:
- FastAPI for the API server
- CrewAI for multi-agent workflows
- Qdrant client for vector search
- SQLAlchemy for database operations
- MarkItDown for document processing
Configure Backend Environment
Copy the example environment file and configure it:Edit
.env with your configuration. See the Environment Variables page for details.Set Up Qdrant Vector Database
DecipherIt uses Qdrant for vector search. You can run it using Docker:Or install it locally following the Qdrant installation guide.
Verify Installation
Once both servers are running, verify the installation:- Frontend: Open your browser and navigate to
http://localhost:3000 - Backend API: Navigate to
http://localhost:8001/docsto view the API documentation - Health Check: Navigate to
http://localhost:8001/healthto verify the backend is running
Next Steps
Configuration
Configure DecipherIt for your environment
Environment Variables
Complete environment variables reference
Docker Deployment
Deploy using Docker and docker-compose
Integrations
Set up Bright Data and other integrations
Troubleshooting
Database Connection Issues
If you encounter database connection errors:- Verify PostgreSQL is running:
systemctl status postgresql - Check the
DATABASE_URLin your.env.localand.envfiles - Ensure the database user has the correct permissions
Port Already in Use
If port 3000 or 8001 is already in use:Qdrant Connection Failed
If the backend cannot connect to Qdrant:- Verify Qdrant is running:
docker psor check the local service - Check the
QDRANT_API_URLin your backend.envfile - Ensure the port 6333 is not blocked by a firewall