{"id":29013159,"url":"https://github.com/alabaganne/coddit","last_synced_at":"2026-04-05T21:04:24.151Z","repository":{"id":300440970,"uuid":"1005497823","full_name":"alabaganne/coddit","owner":"alabaganne","description":"a platform inspired by reddit for devs to share thoughts, struggles, ideas, and knowledge built with next.js, tailwind css, and supabase (postgres).","archived":false,"fork":false,"pushed_at":"2025-06-21T18:19:35.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-21T18:31:37.693Z","etag":null,"topics":["blog","community","developers","knowledge-base","nextjs","postgres","postgresql","reddit","supabase","tailwind","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alabaganne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-20T10:16:02.000Z","updated_at":"2025-06-21T18:25:44.000Z","dependencies_parsed_at":"2025-06-21T18:42:51.773Z","dependency_job_id":null,"html_url":"https://github.com/alabaganne/coddit","commit_stats":null,"previous_names":["alabaganne/reddit-for-devs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alabaganne/coddit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alabaganne%2Fcoddit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alabaganne%2Fcoddit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alabaganne%2Fcoddit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alabaganne%2Fcoddit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alabaganne","download_url":"https://codeload.github.com/alabaganne/coddit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alabaganne%2Fcoddit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31449838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","community","developers","knowledge-base","nextjs","postgres","postgresql","reddit","supabase","tailwind","tailwindcss"],"created_at":"2025-06-25T19:10:17.078Z","updated_at":"2026-04-05T21:04:24.135Z","avatar_url":"https://github.com/alabaganne.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blog Community App\n\nA modern blog application built with Next.js, Supabase, and Tailwind CSS featuring upvoting and comments functionality.\n\n## Features\n\n- ✨ **Create Posts**: Share your thoughts with the community\n- 🔥 **Upvoting System**: Upvote posts and comments\n- 💬 **Comments Section**: Engage with posts through comments\n- 📱 **Responsive Design**: Beautiful UI that works on all devices\n- ⚡ **Real-time Updates**: Powered by Supabase\n- 🎨 **Modern UI**: Clean design with Tailwind CSS\n\n## Tech Stack\n\n- **Frontend**: Next.js 14 with TypeScript\n- **Database**: Supabase (PostgreSQL)\n- **Styling**: Tailwind CSS\n- **Icons**: Lucide React\n- **Date Formatting**: date-fns\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js 18 or later\n- A Supabase account and project\n\n### Installation\n\n1. **Clone and setup the project** (if you haven't already):\n   ```bash\n   git clone \u003cyour-repo-url\u003e\n   cd reddit-clone\n   npm install\n   ```\n\n2. **Set up Supabase**:\n   - Create a new project at [supabase.com](https://supabase.com)\n   - Go to Settings \u003e API to get your project URL and anon key\n\n3. **Configure environment variables**:\n   ```bash\n   cp .env.example .env.local\n   ```\n   \n   Edit `.env.local` and add your Supabase credentials:\n   ```env\n   NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url\n   NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key\n   ```\n\n4. **Set up the database**:\n   - Go to your Supabase project dashboard\n   - Navigate to the SQL Editor\n   - Copy and paste the contents of `database-schema.sql`\n   - Run the SQL to create all necessary tables and policies\n\n5. **Start the development server**:\n   ```bash\n   npm run dev\n   ```\n\n6. **Open your browser**:\n   Visit [http://localhost:3000](http://localhost:3000) to see the app!\n\n## Database Schema\n\nThe app uses four main tables:\n\n- **posts**: Stores blog posts with title, content, and upvote count\n- **comments**: Stores comments linked to posts with upvote count\n- **post_upvotes**: Tracks individual user upvotes on posts\n- **comment_upvotes**: Tracks individual user upvotes on comments\n\n## Project Structure\n\n```\nsrc/\n├── app/\n│   ├── page.tsx              # Main page component\n│   └── layout.tsx            # Root layout\n├── components/\n│   ├── BlogList.tsx          # Displays list of blog posts\n│   ├── BlogPost.tsx          # Individual blog post component\n│   ├── CreatePost.tsx        # Form for creating new posts\n│   └── CommentSection.tsx    # Comments display and form\n└── lib/\n    └── supabase.ts           # Supabase client configuration\n```\n\n## Key Features Explained\n\n### Upvoting System\n- Users can upvote both posts and comments\n- Upvote counts are displayed next to each item\n- Visual feedback when items are upvoted\n\n### Comments\n- Expandable comment sections for each post\n- Real-time comment count display\n- Nested comment display with timestamps\n\n### Responsive Design\n- Mobile-first approach\n- Clean, modern interface\n- Smooth animations and transitions\n\n## Customization\n\n### Styling\nThe app uses Tailwind CSS for styling. You can customize the look by:\n- Modifying the Tailwind configuration in `tailwind.config.ts`\n- Updating component styles in the respective component files\n\n### Database Policies\nThe current setup allows public read/write access. For production, consider:\n- Implementing user authentication\n- Updating Row Level Security policies in Supabase\n- Adding user ownership checks\n\n### Adding Features\nSome ideas for extending the app:\n- User authentication and profiles\n- Post categories/tags\n- Search functionality\n- Rich text editor\n- Image uploads\n- Email notifications\n\n## Deployment\n\n### Vercel (Recommended)\n1. Push your code to GitHub\n2. Connect your repository to Vercel\n3. Add your environment variables in Vercel dashboard\n4. Deploy!\n\n### Other Platforms\nThe app can be deployed to any platform that supports Next.js:\n- Netlify\n- Railway\n- AWS Amplify\n- DigitalOcean App Platform\n\n## Environment Variables\n\n| Variable | Description | Required |\n|----------|-------------|----------|\n| `NEXT_PUBLIC_SUPABASE_URL` | Your Supabase project URL | Yes |\n| `NEXT_PUBLIC_SUPABASE_ANON_KEY` | Your Supabase anon/public key | Yes |\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Make your changes\n4. Test thoroughly\n5. Submit a pull request\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n## Support\n\nIf you have questions or need help:\n- Check the [Supabase documentation](https://supabase.com/docs)\n- Review the [Next.js documentation](https://nextjs.org/docs)\n- Open an issue in this repository\n\n## Acknowledgments\n\n- [Next.js](https://nextjs.org/) for the React framework\n- [Supabase](https://supabase.com/) for the backend infrastructure\n- [Tailwind CSS](https://tailwindcss.com/) for the styling system\n- [Lucide](https://lucide.dev/) for the beautiful icons\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falabaganne%2Fcoddit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falabaganne%2Fcoddit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falabaganne%2Fcoddit/lists"}