- Docker Desktop installed and running on your PC
- Git (for cloning the repository, if applicable)
- Clone the Repository
git clone https://github.com/Senti-fi/Senti.fi.git cd Senti.fi
-
Add Environment Files
- Create a
.envfile in thebackenddirectory - Create a
.envfile in thelucy-aidirectory
- Create a
-
Run the Application (Only for lucy AI and the Backend)
docker-compose up --build
-
Run Database Migrations and Seeding
# Run database migrations docker-compose exec senti-backend npx prisma migrate dev # Seed the database with initial data docker-compose exec senti-backend npx prisma db seed
-
Run the Frontend
# Navigate to frontend directory cd frontend # Install dependencies yarn install # Run development Server npm run dev # or yarn dev # or pnpm dev
Senti.fi/
├── backend/
│ └── .env
├── frontend/
│ └── .env
├── lucy-ai/
│ └── .env
└── docker-compose.yml
Add your backend environment variables in backend/.env:
# Example variables - adjust according to your needs
DATABASE_URL=your_database_url
SECRET_KEY=your_secret_key
API_PORT=3000Add your Lucy AI environment variables in lucy-ai/.env:
# Example variables - adjust according to your needs
AI_API_KEY=your_ai_api_key
MODEL_NAME=your_model_nameAdd your frontend environment variables in frontend/.env:
# Backend API
NEXT_PUBLIC_API_URL=After starting the containers, you need to set up the database:
-
Run Migrations - Creates the database schema
docker-compose exec senti-backend npx prisma migrate dev -
Seed the Database - Populates with initial data
docker-compose exec senti-backend npx prisma db seed
Note: These commands should be run after the containers are up and running with docker-compose up --build.
-
Docker Desktop Not Running
- Ensure Docker Desktop is installed and running
- Verify Docker daemon is active
-
Port Conflicts
- Check if required ports are available
- Modify ports in
docker-compose.ymlif needed
-
Environment Files Missing
- Ensure both
.envfiles exist in their respective directories - Verify file names are exactly
.env(not.env.txtor similar)
- Ensure both
-
Build Issues
- Clear Docker cache:
docker system prune -a - Restart Docker Desktop
- Clear Docker cache:
-
Database Connection Issues
- Ensure the database container is running
- Verify DATABASE_URL in backend
.envfile is correct - Run migrations and seeding commands after containers are up
-
Git Clone Issues
- Verify you have access to the repository
- Check your internet connection
- Ensure Git is properly installed
For development with hot-reload, check if your docker-compose.yml includes volume mounts for live code updates.
If you encounter issues:
- Check Docker Desktop is running
- Verify all
.envfiles are properly configured - Ensure no port conflicts exist
- Check the logs using
docker-compose logs - Verify database migrations and seeding completed successfully
- Ensure you have cloned the repository correctly