React + TypeScript frontend for the CollabDesk collaborative workspace platform.
-
Install dependencies:
pnpm install # or npm install -
Configure environment variables:
Copy
.env.developmentand update if needed:VITE_API_BASE_URL=http://localhost:8000
-
Run the development server:
pnpm dev # or npm run dev
The app will be available at http://localhost:5173
pnpm build # or npm run buildBuilt files will be in the dist/ directory.
src/
├── components/
│ ├── calendar/ # Calendar-related components
│ ├── dashboard/ # Dashboard components
│ ├── layout/ # Layout components (TopBar, Sidebar, etc.)
│ └── modals/ # Modal components
├── lib/
│ ├── api.ts # API client and backend communication
│ ├── store.ts # State management
│ └── useDarkMode.ts # Dark mode hook
├── App.tsx # Main application component
├── main.tsx # Application entry point
└── types.ts # TypeScript type definitions
- React 19 - UI library
- TypeScript - Type safety
- Vite - Build tool and dev server
- Tailwind CSS - Styling
- date-fns - Date manipulation
- axios - HTTP client
pnpm dev- Start development serverpnpm build- Build for productionpnpm preview- Preview production buildpnpm lint- Run ESLint
VITE_API_BASE_URL- Backend API URL (default:http://localhost:8000)
Django REST API backend for the CollabDesk collaborative workspace platform.
-
Create a virtual environment:
cd collabdesk python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Run migrations:
python manage.py migrate
-
Create a superuser (optional):
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
The API will be available at http://localhost:8000
collabdesk/
├── manage.py
├── requirements.txt
├── collabdesk/ # Main project settings
├── events/ # Events app (calendar events)
├── users/ # Users app
└── workspaces/ # Workspaces app
/api/events/- Event management/api/workspaces/- Workspace management/admin/- Django admin interface
python manage.py test- Development: SQLite (
db.sqlite3) - Production: PostgreSQL (configured via environment variables)