⭐ Enjoying TaskForge Frontend? If it's useful to you, please star it on GitHub. It's free and it helps other developers find it.
A web frontend for TaskForge built with Next.js 16 and React 19. It provides a dark-themed UI with glassmorphism design patterns, real-time state management via React Query, and form validation with React Hook Form and Zod.
- Authentication System: Secure login/registration with JWT token management
- Organization Management: Create, manage, and invite team members to organizations
- Dashboard: Central hub for viewing and managing tasks and team information
- Project Mission Control: per-project dashboard with a progress header, Gantt-style timeline, weekly velocity chart, priority distribution donut and a live activity feed
- Kanban Board: real-time drag-and-drop board with multi-assignee avatar clusters, colored labels, due dates and per-card progress pills
- Project Import/Export: portable JSON project templates with a preview-before-import flow
- Real-time UI Updates: Powered by React Query for efficient server state management
- Custom Design System: Glassmorphism dark theme with CSS Modules
- Form Validation: Robust form handling with React Hook Form and Zod
- Responsive Design: Mobile-friendly interface that works across all devices
- API Integration: Seamless connection to Django backend API
- Framework: Next.js 16 (App Router)
- Runtime: Bun
- Language: JavaScript (ES2024)
- Styling: Pure CSS with CSS Modules + Custom Design System
- State Management:
zustand- Client/auth state@tanstack/react-query- Server state & API caching
- Forms & Validation:
react-hook-form- Form state management@hookform/resolvers- Form validation integrationzod- Schema validation
- Theme:
next-themes- Light/dark theme support - Charts:
recharts- Dashboard analytics (velocity & distribution) - Dev Tools: ESLint 9, Playwright smoke script (
scripts/smoke-board.cjs)
- Bun v1.0+ (or Node.js 20+)
- A running instance of the TaskForge Django backend
-
Clone the repository:
git clone <repository-url> cd taskforge-frontend
-
Install dependencies:
bun install
-
Configure environment variables:
cp .env.local.example .env.local
Update
.env.localwith your configuration:NEXT_PUBLIC_API_URL=http://localhost:8000
-
Start the development server:
bun run dev
-
Open your browser: Navigate to http://localhost:3000
src/
├── app/ # Next.js App Router
│ ├── layout.jsx # Root layout
│ ├── page.jsx # Home page
│ ├── globals.css # Global styles & CSS variables
│ ├── (auth)/ # Auth route group
│ │ ├── login/
│ │ └── register/
│ └── (dashboard)/ # Dashboard route group
│ ├── page.jsx # Dashboard home
│ └── orgs/[slug]/ # Organization detail page
│
├── components/ # Reusable React components
│ ├── auth/ # Authentication forms
│ │ ├── LoginForm.jsx
│ │ └── RegisterForm.jsx
│ ├── layout/ # Layout components
│ │ ├── Sidebar.jsx
│ │ ├── Topbar.jsx
│ │ └── QueryProvider.jsx
│ ├── orgs/ # Organization components
│ │ ├── OrgCard.jsx
│ │ ├── MemberTable.jsx
│ │ └── InviteModal.jsx
│ └── ui/ # Reusable UI components
│ ├── Button.jsx
│ ├── Input.jsx
│ ├── Modal.jsx
│ ├── Card.jsx
│ ├── Badge.jsx
│ └── Avatar.jsx
│
├── lib/ # Utilities and helpers
│ ├── api/ # API client functions
│ │ ├── client.js # Axios instance with auth
│ │ ├── auth.js # Auth API endpoints
│ │ └── orgs.js # Organization API endpoints
│ ├── hooks/ # Custom React hooks
│ │ ├── useAuth.js # Auth hook
│ │ └── useOrgs.js # Organizations hook
│ ├── store/ # Zustand stores
│ │ └── authStore.js # Authentication state
│ └── types/ # Type definitions
│
└── public/ # Static assets
We maintain a strict separation between auth state and server state:
-
Zustand (
authStore.js): Manages client-side authentication state- User profile information
- JWT tokens
- Authentication status
- Persisted to
localStoragevia middleware
-
TanStack Query: Manages all server state
- Organization data
- Task information
- Automatic caching & invalidation
- Real-time synchronization
- User logs in via the login form
- Backend returns JWT token
- Token is stored in Zustand store with persistence
- Token automatically included in all API requests via
client.js - Route protection handled by middleware checking
taskforge_authenticatedcookie
Local Storage (not httpOnly cookies) is used for:
- Pros: Simpler local development, easier debugging, portfolio-friendly
- Cons: Vulnerable to XSS attacks in production
In production, consider migrating to httpOnly cookies with CSRF protection.
We use CSS Modules instead of Tailwind CSS for:
- Control over the glassmorphism dark theme
- CSS Custom Properties (
globals.css) for centralized design tokens - Scoped styling via
*.module.cssfiles to prevent class conflicts - Smaller bundle size than utility-first frameworks
# Start development server with hot reload
bun run dev
# Build for production
bun run build
# Start production server
bun start
# Run ESLint
bun run lint- Create a new branch for your feature
- Make changes to components/pages
- Test locally at
http://localhost:3000 - Ensure linting passes:
bun run lint - Commit and push changes
- Create a new folder in
src/app/(dashboard)orsrc/app/(auth) - Add a
page.jsxfile:export default function PageName() { return ( <div> {/* Your content */} </div> ); }
- Create a component in
src/components/[category]/ComponentName.jsx - Create a corresponding style file
ComponentName.module.css - Export from the component directory if needed
All API calls should use the client from src/lib/api/client.js:
import client from '@/lib/api/client';
export async function getOrganizations() {
const { data } = await client.get('/api/orgs/');
return data;
}The client automatically:
- Attaches JWT authentication headers
- Handles base URL configuration
- Includes request/response interceptors
bun run buildThis creates an optimized production build in the .next directory.
A Dockerfile is included for containerized deployment:
docker build -t taskforge-frontend .
docker run -p 3000:3000 taskforge-frontendUpdate .env.local with production values:
NEXT_PUBLIC_API_URL=https://api.example.comThe frontend communicates with a Django REST API. Key endpoints:
POST /api/auth/login/- User loginPOST /api/auth/register/- User registrationPOST /api/auth/logout/- User logout
GET /api/orgs/- List user's organizationsPOST /api/orgs/- Create new organizationGET /api/orgs/{slug}/- Get organization detailsPUT /api/orgs/{slug}/- Update organizationDELETE /api/orgs/{slug}/- Delete organizationPOST /api/orgs/{slug}/invite/- Invite member to organization
GET /api/tasks/- List tasksPOST /api/tasks/- Create taskPUT /api/tasks/{id}/- Update taskDELETE /api/tasks/{id}/- Delete task
For complete API documentation, see the TaskForge Backend repository.
# Kill process on port 3000
lsof -ti:3000 | xargs kill -9
# Or specify a different port
bun run dev -- -p 3001- Ensure Django backend is running on
http://localhost:8000 - Check
NEXT_PUBLIC_API_URLin.env.local - Verify CORS settings in Django backend
- Check browser console for network errors
# Clear Next.js cache
rm -rf .next
# Clear Zustand store (browser dev tools)
# Open DevTools → Application → Local Storage → Remove taskforge entries- Code Splitting: Next.js automatically code-splits routes
- Image Optimization: Use
next/imagefor images - CSS-in-JS: CSS Modules prevent unused styles from being shipped
- Query Caching: React Query caches API responses automatically
- Chrome/Edge 90+
- Firefox 88+
- Safari 14+
- Mobile browsers (iOS Safari 14+, Chrome Android)
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
For issues, questions, or suggestions:
- Check existing GitHub Issues
- Create a new issue with detailed information
- Include screenshots or error logs when applicable
- TaskForge Backend - Django REST API