A comprehensive peer-to-peer tutoring platform for students to offer and request academic help.
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema setup
│ │ └── queries.ts # Database query functions
│ ├── routes/
│ │ ├── auth.ts # Authentication routes
│ │ ├── posts.ts # Post feed management
│ │ ├── chat.ts # Messaging system
│ │ ├── users.ts # User profiles and skills
│ │ └── static.ts # Static file serving
│ └── index.ts # Main API entry point
├── frontend/
│ ├── components/
│ │ ├── App.tsx # Main application
│ │ ├── PostFeed.tsx # Help request feed
│ │ ├── Chat.tsx # Messaging interface
│ │ ├── Profile.tsx # User profile management
│ │ └── SkillCard.tsx # Skill display component
│ ├── index.html # Main HTML template
│ ├── index.tsx # Frontend entry point
│ └── style.css # Custom styles
└── shared/
└── types.ts # Shared TypeScript types
GET / - Serve the main applicationPOST /api/auth/login - User authenticationGET /api/posts - Get help request postsPOST /api/posts - Create new help requestGET /api/chat/:userId - Get chat messagesPOST /api/chat - Send messageGET /api/users/profile - Get user profilePUT /api/users/skills - Update user skills