{"id":29857147,"url":"https://github.com/forloopcodes/terminal-hunt","last_synced_at":"2025-10-14T21:37:59.545Z","repository":{"id":305407817,"uuid":"1013242348","full_name":"ForLoopCodes/terminal-hunt","owner":"ForLoopCodes","description":"A Product Hunt-inspired platform for discovering and sharing terminal-based applications.","archived":false,"fork":false,"pushed_at":"2025-08-06T18:41:30.000Z","size":561,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-06T20:39:31.069Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://termhunt.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ForLoopCodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-07-03T15:19:17.000Z","updated_at":"2025-08-06T18:41:33.000Z","dependencies_parsed_at":"2025-08-06T20:26:51.452Z","dependency_job_id":"f893c5d7-122d-4495-bcdf-ad22c26b3f97","html_url":"https://github.com/ForLoopCodes/terminal-hunt","commit_stats":null,"previous_names":["forloopcodes/terminal-hunt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ForLoopCodes/terminal-hunt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForLoopCodes%2Fterminal-hunt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForLoopCodes%2Fterminal-hunt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForLoopCodes%2Fterminal-hunt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForLoopCodes%2Fterminal-hunt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ForLoopCodes","download_url":"https://codeload.github.com/ForLoopCodes/terminal-hunt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ForLoopCodes%2Fterminal-hunt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021374,"owners_count":26087023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-07-30T00:38:45.026Z","updated_at":"2025-10-14T21:37:59.518Z","avatar_url":"https://github.com/ForLoopCodes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Termhunt\n\nA Product Hunt-inspired platform for discovering and sharing terminal-based applications. Built with Next.js, TypeScript, PostgreSQL, and Tailwind CSS.\n\n## Features\n\n- 🔐 **Authentication**: Support for Google, Twitter/X OAuth and email/password signup\n- 📝 **App Submission**: Submit terminal apps with Markdown descriptions and installation instructions\n- ⭐ **Voting System**: Vote for your favorite applications\n- 💬 **Comments**: Engage with the community through comments\n- 🏆 **Leaderboards**: Track the most popular apps across different time periods\n- 🏷️ **Tags**: Filter applications by categories\n- 🔍 **Search**: Find applications by name or description\n- 👤 **User Profiles**: View user submissions, comments, and achievements\n- 📱 **Responsive Design**: Works great on desktop and mobile\n\n## Tech Stack\n\n- **Frontend**: Next.js 15, React 19, TypeScript\n- **Styling**: Tailwind CSS, WebTUI CSS\n- **Authentication**: NextAuth.js\n- **Database**: PostgreSQL with Drizzle ORM\n- **Markdown**: React Markdown\n- **Package Manager**: Bun\n\n## Prerequisites\n\n- Node.js 18+ or Bun\n- PostgreSQL 14+\n- Google OAuth credentials (optional)\n- Twitter/X OAuth credentials (optional)\n\n## Local Development Setup\n\n### 1. Clone and Install Dependencies\n\n```bash\ngit clone \u003cyour-repo\u003e\ncd terminal-hunt\nbun install\n```\n\n### 2. Database Setup\n\nCreate a PostgreSQL database:\n\n```sql\nCREATE DATABASE terminal_hunt;\n```\n\nRun the initialization script:\n\n```bash\npsql -d terminal_hunt -f database/init.sql\n```\n\n### 3. Environment Variables\n\nCreate a `.env.local` file in the root directory:\n\n```env\n# Database\nDATABASE_URL=\"postgresql://username:password@localhost:5432/terminal_hunt\"\n\n# NextAuth\nNEXTAUTH_URL=\"http://localhost:3000\"\nNEXTAUTH_SECRET=\"your-secret-key\"\n\n# Google OAuth (optional)\nGOOGLE_CLIENT_ID=\"your-google-client-id\"\nGOOGLE_CLIENT_SECRET=\"your-google-client-secret\"\n\n# Twitter OAuth (optional)\nTWITTER_CLIENT_ID=\"your-twitter-client-id\"\nTWITTER_CLIENT_SECRET=\"your-twitter-client-secret\"\n```\n\n### 4. OAuth Setup (Optional)\n\n#### Google OAuth\n\n1. Go to [Google Cloud Console](https://console.cloud.google.com/)\n2. Create a new project or select existing one\n3. Enable Google+ API\n4. Create OAuth 2.0 credentials\n5. Add authorized redirect URI: `http://localhost:3000/api/auth/callback/google`\n\n#### Twitter/X OAuth\n\n1. Go to [Twitter Developer Portal](https://developer.twitter.com/)\n2. Create a new app\n3. Set up OAuth 2.0 with PKCE\n4. Add callback URL: `http://localhost:3000/api/auth/callback/twitter`\n\n### 5. Database Migration\n\nGenerate and push the database schema:\n\n```bash\nbun run db:generate\nbun run db:push\n```\n\n### 6. Start Development Server\n\n```bash\nbun run dev\n```\n\nVisit [http://localhost:3000](http://localhost:3000) to see the application.\n\n## Available Scripts\n\n- `bun run dev` - Start development server\n- `bun run build` - Build for production\n- `bun run start` - Start production server\n- `bun run lint` - Run ESLint\n- `bun run db:push` - Push database schema\n- `bun run db:studio` - Open Drizzle Studio\n- `bun run db:generate` - Generate database migrations\n\n## Project Structure\n\n```\nsrc/\n├── app/                    # Next.js app router pages\n│   ├── api/               # API routes\n│   ├── auth/              # Authentication pages\n│   ├── app/[id]/          # App detail pages\n│   ├── profile/[userTag]/ # User profile pages\n│   ├── submit/            # Submit app page\n│   ├── leaderboard/       # Leaderboard page\n│   └── about/             # About page\n├── components/            # Reusable React components\n├── lib/                   # Utility libraries\n│   └── db/               # Database configuration and schema\n└── types/                 # TypeScript type definitions\n\ndatabase/\n└── init.sql              # Database initialization script\n```\n\n## API Endpoints\n\n### Apps\n\n- `GET /api/apps` - List apps with sorting and filtering\n- `POST /api/apps` - Create new app (authenticated)\n- `GET /api/apps/[id]` - Get app details\n- `POST /api/apps/[id]/vote` - Vote for an app (authenticated)\n- `POST /api/apps/[id]/comments` - Add comment (authenticated)\n- `POST /api/apps/[id]/view` - Log app view\n\n### Users\n\n- `GET /api/users/[userTag]` - Get user profile\n- `PUT /api/users/[userTag]` - Update user profile (authenticated)\n\n### Authentication\n\n- `POST /api/auth/signup` - Create new account\n- NextAuth.js endpoints at `/api/auth/*`\n\n### Tags\n\n- `GET /api/tags` - List all tags\n\n### Leaderboards\n\n- `GET /api/leaderboards/[period]` - Get leaderboard data (daily, weekly, monthly, yearly)\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add some amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open 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 encounter any issues or have questions, please open an issue on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforloopcodes%2Fterminal-hunt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforloopcodes%2Fterminal-hunt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforloopcodes%2Fterminal-hunt/lists"}