A modern professional networking platform that bridges students and alumni. Share knowledge, find mentors, and accelerate your career journey.
- User Authentication & Authorization - Secure registration and login system
- Profile Management - Comprehensive user profiles with skills, education, and experience
- Alumni Verification - Special verification system for alumni status
- Real-time Feed - Dynamic feed with posts, comments, and interactions
- Following System - Follow other users and see their updates
- Notifications - Real-time notifications for follows, likes, and comments
- Messaging - Direct messaging between users
- Blog System - Create and share blog posts with the community
- Students - Current university students looking for guidance and opportunities
- Alumni - Graduated professionals willing to share knowledge and mentor
- Admin - Platform administrators with special privileges
- Skill Selection - Tag yourself with relevant skills and technologies
- Company Integration - Connect with companies and showcase work experience
- Search & Discovery - Find users by skills, company, graduation year, etc.
- Responsive Design - Works seamlessly on desktop, tablet, and mobile
- React 18 - Modern React with hooks and functional components
- TypeScript - Type-safe development
- Vite - Fast build tool and development server
- Tailwind CSS - Utility-first CSS framework
- shadcn/ui - Beautiful and accessible UI components
- React Router - Client-side routing
- Lucide React - Beautiful icons
- date-fns - Date manipulation library
- Node.js - JavaScript runtime
- Express.js - Web application framework
- JSON Database - File-based database for simplicity
- JWT - JSON Web Tokens for authentication
- bcryptjs - Password hashing
- CORS - Cross-origin resource sharing
- ESLint - Code linting
- Nodemon - Auto-restart server during development
- PostCSS - CSS post-processing
gradnet-alumni-connect/
βββ src/ # Frontend source code
β βββ components/ # Reusable React components
β β βββ ui/ # shadcn/ui components
β β βββ Navbar.tsx # Navigation component
β β βββ Logo.tsx # Brand logo component
β β βββ ... # Other components
β βββ contexts/ # React Context providers
β β βββ AuthContext.tsx # Authentication state
β β βββ BlogContext.tsx # Blog management
β β βββ FollowContext.tsx # Follow system
β β βββ NotificationContext.tsx # Notifications
β β βββ ProfileContext.tsx # Profile management
β βββ hooks/ # Custom React hooks
β βββ lib/ # Utility functions
β βββ pages/ # Page components
β β βββ Index.tsx # Landing page
β β βββ Login.tsx # Login page
β β βββ Register.tsx # Registration page
β β βββ Feed.tsx # Main feed
β β βββ Profile.tsx # User profile
β β βββ ... # Other pages
β βββ assets/ # Static assets
βββ backend/ # Backend source code
β βββ server.js # Express server
β βββ database.json # JSON database
β βββ package.json # Backend dependencies
βββ public/ # Public assets
βββ package.json # Frontend dependencies
βββ tailwind.config.ts # Tailwind configuration
βββ tsconfig.json # TypeScript configuration
βββ vite.config.ts # Vite configuration
- Node.js (v16 or higher)
- npm or yarn
-
Clone the repository
git clone <repository-url> cd gradnet-alumni-connect
-
Install frontend dependencies
npm install
-
Install backend dependencies
cd backend npm install cd ..
-
Start the backend server
cd backend npm run devThe backend will run on
http://localhost:5000 -
Start the frontend development server (in a new terminal)
npm run dev
The frontend will run on
http://localhost:5173 -
Open your browser Navigate to
http://localhost:5173to see the application
-
Build the frontend
npm run build
-
Preview the production build
npm run preview
The application uses a JSON file-based database with the following collections:
- users - User accounts and profiles
- posts - Blog posts and feed content
- comments - Comments on posts
- likes - Post and comment likes
- commentLikes - Specific comment likes
- follows - User following relationships
- notifications - System notifications
The application uses JWT (JSON Web Tokens) for authentication:
- Tokens are stored in localStorage
- Protected routes require valid authentication
- Different user types have different access levels
- Dark/Light Theme - Automatic theme switching
- Responsive Design - Mobile-first approach
- Smooth Animations - CSS transitions and transforms
- Accessibility - ARIA labels and keyboard navigation
- Loading States - Skeleton screens and spinners
- Error Handling - User-friendly error messages
Create a .env file in the root directory:
VITE_API_URL=http://localhost:5000The backend server configuration can be modified in backend/server.js:
- Port: Default 5000
- CORS settings
- JWT secret
- Database file path
Currently, the project focuses on manual testing. Future improvements may include:
- Unit tests with Jest
- Integration tests
- E2E tests with Playwright
POST /api/register- User registrationPOST /api/login- User login
GET /api/user/:id- Get user profilePUT /api/user/:id- Update user profileGET /api/users- Get all users (with filters)
GET /api/posts- Get all postsPOST /api/posts- Create new postGET /api/posts/:id- Get specific postPUT /api/posts/:id- Update postDELETE /api/posts/:id- Delete post
GET /api/posts/:id/comments- Get post commentsPOST /api/posts/:id/comments- Add commentPUT /api/comments/:id- Update commentDELETE /api/comments/:id- Delete comment
POST /api/posts/:id/like- Like/unlike postPOST /api/comments/:id/like- Like/unlike comment
POST /api/follow/:userId- Follow userDELETE /api/follow/:userId- Unfollow userGET /api/user/:userId/followers- Get followersGET /api/user/:userId/following- Get following
GET /api/notifications- Get user notificationsPATCH /api/notifications/:id/read- Mark notification as readPATCH /api/notifications/read-all- Mark all notifications as read
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License.
If you have any questions or need help, please:
- Check the existing issues
- Create a new issue with detailed information
- Contact the development team
The frontend can be deployed to any static hosting service:
- Vercel
- Netlify
- GitHub Pages
- AWS S3 + CloudFront
The backend can be deployed to:
- Heroku
- Railway
- DigitalOcean
- AWS EC2
Remember to update the API URL in your frontend environment variables when deploying.
Built with β€οΈ for the GradNet community