DevNet is a modern, open-source platform for developers to share knowledge, publish posts, and connect with the community. Built with Vite, React, TypeScript, shadcn-ui, and Tailwind CSS, it features a clean, responsive UI and a robust backend powered by Supabase.
- 📝 Post Creation & Feed: Write, publish, and browse posts with rich content and tags.
- 🔍 Tag System: Discover and filter content by popular tags.
- 👤 User Authentication: Sign up, sign in, and manage your profile securely (Supabase Auth).
- 🏆 Admin Dashboard: Manage users, posts, and platform stats (admin access required).
- 📊 Engagement: Like, comment, bookmark, and view post stats.
- ⚡ Modern UI: Responsive, accessible, and themeable design inspired by Dev.to.
- 🛡️ Role-based Access: Admin and moderator roles for platform management.
- Vite (build tool)
- React + TypeScript
- shadcn-ui (UI components)
- Tailwind CSS (utility-first CSS)
- Supabase (database & auth)
# 1. Clone the repository
git clone <YOUR_GIT_URL>
cd <YOUR_PROJECT_NAME>
# 2. Install dependencies
npm install
# 3. Start the development server
npm run devThe app will be available at http://localhost:8080 by default.
src/— Main source codecomponents/— UI components (including Layout, PostCard, UI primitives)contexts/— React context providers (e.g., Auth)hooks/— Custom React hooksintegrations/supabase/— Supabase client and typeslib/— Utility functionspages/— Main page components (Index, Auth, Admin, etc.)
public/— Static assetssupabase/— Supabase config and migrations
- Supabase: The project is pre-configured with a Supabase project. If you wish to use your own, update the credentials in
src/integrations/supabase/client.ts. - Port: The dev server runs on port 8080 by default (see
vite.config.ts). - Tailwind: Custom theme and utility classes are defined in
tailwind.config.tsandsrc/index.css.
- The admin dashboard is accessible only to users with admin or moderator roles.
- Default admin credentials are seeded in the Supabase migrations (see
supabase/migrations/).
To build for production:
npm run buildTo preview the production build locally:
npm run previewYou can deploy the output in the dist/ directory to any static hosting provider (e.g., Vercel, Netlify, Cloudflare Pages).
This project is open-source and available under the MIT License.