DIVE is an application implemented by my students and me as part of my PhD. More details will follow soon.
- Docker and Docker Compose installed
- Git
-
Clone the repository:
git clone https://github.com/J-x-D/DIVE.git cd DIVE -
Create a
.envfile in the root directory with the following variables:NEXT_PUBLIC_SUPABASE_URL=your_supabase_url NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key OPENAI_API_KEY=your_openai_api_key
-
Start the application:
docker-compose up --build
-
Access the application:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8080
The application uses Docker Compose with hot reload enabled for both frontend and backend:
- Frontend: Next.js application running on port 3000
- Backend: Bun server running on port 8080
Code changes will automatically be reflected without restarting the containers.
docker-compose downTo remove all volumes as well:
docker-compose down -v- Frontend: Next.js 14 with TypeScript, TailwindCSS, and shadcn/ui
- Backend: Bun runtime with TypeScript
- Database: Supabase (PostgreSQL)
- AI: OpenAI API integration
| Variable | Description |
|---|---|
NEXT_PUBLIC_SUPABASE_URL |
Your Supabase project URL |
NEXT_PUBLIC_SUPABASE_ANON_KEY |
Your Supabase anonymous key |
OPENAI_API_KEY |
Your OpenAI API key |
CODESPACE_NAME |
Automatically set in GitHub Codespaces |
CORS is configured on the backend to allow all origins. If you encounter CORS errors, ensure the containers are running and the backend is accessible.
The application is configured to work with GitHub Codespaces. If you see "Invalid Server Actions request" errors, ensure the containers are restarted after the initial setup.
If containers fail to start, try rebuilding:
docker-compose down -v
docker-compose up --buildFor more detailed Docker setup information, see DOCKER_SETUP.md.