This project is a full-stack application with a Bun/Vite frontend and Phoenix/Elixir backend.
This project requires certain environment variables to be set. Create a .env
file in the root directory with the following variables:
GEMINI_API_KEY=your_gemini_api_key_here
SECRET_KEY_BASE=your_secret_key_base_here
Important: Never commit the
.env
file to version control. The repository includes a.env.example
file as a template.
- Navigate to the frontend directory:
cd frontend
- Install dependencies:
bun install
- Start the development server:
bun run dev
- Navigate to the backend directory:
cd backend
- Install dependencies:
mix deps.get
- Start the Phoenix server:
mix phx.server
To run the entire application using Docker:
- Build the Docker image:
docker build -t shader-api .
- Run the container:
docker run -p 80:80 shader-api
The application will be available at http://localhost
.
- Stop the container:
docker stop <container_id>
- View running containers:
docker ps
- View logs:
docker logs <container_id>
/frontend
- Bun/Vite frontend application/backend
- Phoenix/Elixir backend applicationDockerfile
- Multi-stage build file for production deploymentnginx.conf
- Nginx configuration for serving the application