This is a SvelteKit application for brainstorming and managing CRC (Class-Responsibility-Collaboration) cards.
The easiest way to run the application is using Docker Compose.
- Ensure you have Docker and Docker Compose installed.
- Run the following command:
docker compose up --build
- Open your browser to
http://localhost:3000.
- Node.js (v20 or later recommended)
- MySQL Database
Create a .env file in the root directory with the following variables:
DB_HOST=localhost
DB_USER=your_db_user
DB_PASSWORD=your_db_password
DB_NAME=crc_cards
VITE_PUBLIC_URL=http://localhost:5173Use the provided initialization script to set up your MySQL database:
mysql -u your_db_user -p < database/init.sql-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser to
http://localhost:5173.
- Dockerized: The application and database are containerized for easy deployment and local development.
- Repository Pattern: All database access is abstracted through repositories located in
src/lib/server/repositories/. - API Routes: Frontend components communicate with the database via server-side API routes in
src/routes/api/. - Authentication: Authentication is handled via external redirect with JWT token processing in
src/lib/login.js. - Real-time: Real-time updates (previously via Supabase) are currently disabled.