A modern React-based frontend application for DevSphere, featuring user and admin dashboards with authentication, project management, event handling, and member management.
- User Dashboard: Home, events, members, and projects pages
- Admin Panel: Dashboard, login, events, members, and projects management
- Authentication: Secure login using Better Auth
- Responsive Design: Built with Tailwind CSS for mobile-first UI
- Routing: Client-side routing with React Router
- UI Components: Shadcn/ui components for consistent design
- Frontend Framework: React 19 with TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS
- Routing: React Router DOM
- Authentication: Better Auth
- UI Library: Radix UI components
- Icons: Lucide React
-
Clone the repository:
git clone <repository-url> cd devsphere-frontend
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:5173(default Vite port).
- User Routes: Access the main application at
/with pages for home, events, members, and projects. - Admin Routes: Admin panel available at
/adminwith login and management pages. - Ensure the backend server is running on
http://localhost:3000for authentication to work.
src/
├── components/
│ ├── ui/ # Reusable UI components (Button, Input, etc.)
│ ├── UserLayout.tsx
│ ├── AdminLayout.tsx
│ └── ...
├── pages/
│ ├── user/ # User-facing pages
│ └── admin/ # Admin pages
├── lib/
│ ├── auth-client.ts
│ └── utils.ts
├── App.tsx # Main app component with routing
└── main.tsx # Entry point
npm run dev: Start development servernpm run build: Build for productionnpm run lint: Run ESLintnpm run preview: Preview production build
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests and linting
- Submit a pull request