GameFriends is a web application that helps you track your game collection and see what your friends are playing. Connect with Discord to find friends who own the same games and discover new titles to play together.
- Game Collection Tracking: Add games to your personal library
- Discord Integration: Connect with your Discord account to find friends
- Friend Activity: See which games your friends own
- Game Search: Search for games using the IGDB database
- Dark/Light Mode: Choose your preferred theme
- Frontend: Next.js 14, React, TypeScript, Tailwind CSS
- Backend: Next.js API Routes, Supabase
- Authentication: Supabase Auth with Discord OAuth
- Database: PostgreSQL (via Supabase)
- UI Components: shadcn/ui
- API Integration: IGDB API for game data, Discord API for social features
- Node.js 18+ and npm/yarn/pnpm/bun
- Supabase account
- Discord Developer account (for OAuth)
- IGDB API credentials
Create a .env.local file in the root directory with the following variables:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
NEXT_PUBLIC_DISCORD_CLIENT_ID=your_discord_client_id
DISCORD_CLIENT_SECRET=your_discord_client_secret
DISCORD_BOT_TOKEN=your_discord_bot_token
NEXT_PUBLIC_IGDN_CLIENT_ID=your_igdb_client_id
NEXT_PUBLIC_IGDN_CLIENT_SECRET=your_igdb_client_secret
-
Clone the repository:
git clone https://github.com/jjcxdev/gamefriends.git cd gamefriends -
Install dependencies:
npm install # or yarn install # or pnpm install # or bun install
-
Run the development server:
npm run dev # or yarn dev # or pnpm dev # or bun dev
-
Open http://localhost:3000 with your browser to see the application.
The project uses Supabase for database and authentication. The following tables are required:
users: Core user information with Discord integrationdiscord_connections: Stores Discord OAuth data and user detailsfriend_connections: Manages friend relationshipsuser_games: Links users to their gamesgames: Stores game information
The complete schema for these tables can be found in the supabase/schema.sql file.
Contributions are welcome! Please feel free to submit a Pull Request.
- 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 - see the LICENSE file for details.
- Next.js for the React framework
- Supabase for database and authentication
- shadcn/ui for UI components
- Radix UI for accessible components
- Discord for social integration
- Lucide for icons
- Vercel for deployment and analytics
Project Link: https://github.com/jjcxdev/gamefriends
Built with ❤️ by jjcx
