{"id":26096239,"url":"https://github.com/rubriclab/mmxxv","last_synced_at":"2025-04-12T11:35:21.178Z","repository":{"id":271171190,"uuid":"912594472","full_name":"RubricLab/mmxxv","owner":"RubricLab","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-14T16:29:25.000Z","size":723,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T06:22:45.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mmxxv.bet","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RubricLab.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}},"created_at":"2025-01-06T01:51:15.000Z","updated_at":"2025-01-14T16:29:28.000Z","dependencies_parsed_at":"2025-03-09T14:36:25.586Z","dependency_job_id":"51ccae17-0125-44b4-bae5-9be151c8c78c","html_url":"https://github.com/RubricLab/mmxxv","commit_stats":null,"previous_names":["dexterstorey/mmxxv","rubriclab/mmxxv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubricLab%2Fmmxxv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubricLab%2Fmmxxv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubricLab%2Fmmxxv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubricLab%2Fmmxxv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubricLab","download_url":"https://codeload.github.com/RubricLab/mmxxv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248560738,"owners_count":21124713,"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","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-03-09T14:35:58.894Z","updated_at":"2025-04-12T11:35:21.159Z","avatar_url":"https://github.com/RubricLab.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MMXXV\n\nA prediction market game for 2025. Players create markets, make predictions, and compete for points based on their forecasting accuracy.\n\n## Tech Stack\n\n- **Frontend**\n  - Next.js 15 (App Router)\n  - TypeScript\n  - Vanilla CSS with CSS Variables\n  - @rubriclab/ui components\n  - @rubriclab/auth for authentication\n\n- **Backend**\n  - Prisma ORM with PostgreSQL\n  - Next.js Server Actions\n  - Resend for email notifications\n\n- **Infrastructure**\n  - [Vercel](https://vercel.com) for deployment\n  - [Neon](https://neon.tech) for PostgreSQL database\n  - [Resend](https://resend.com) for transactional emails\n  - Biome for code formatting\n\n## Development Setup\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/) (v18 or higher)\n- [Bun](https://bun.sh) for package management\n- [Git](https://github.com/)\n- A code editor (we recommend [Cursor](https://cursor.sh))\n\n### Environment Variables\n\nCopy `.env.example` to `.env` and configure the following variables:\n\n```bash\n# App\nURL                 # Base URL of the application (e.g., http://localhost:3000 for development)\n\n# Database\nDATABASE_URL        # PostgreSQL connection string from Neon (https://neon.tech)\n\n# Email\nRESEND_API_KEY     # API key from Resend.com for sending emails\n```\n\n#### Service Setup\n\n1. **Database**: \n   - Create a new project on [Neon](https://neon.tech)\n   - Copy the connection string from the dashboard\n   - Make sure to append `?sslmode=require` to the connection string\n\n2. **Email**:\n   - Create an account on [Resend](https://resend.com)\n   - Get your API key from the dashboard\n   - Verify your domain for production use\n\n3. **Deployment**:\n   - We recommend [Vercel](https://vercel.com) for deployment\n   - Connect your GitHub repository\n   - Add the environment variables in Vercel's dashboard\n\nYou can also request access to a pre-configured `.env` file by emailing dexter@dexterstorey.com with subject: \"URGENT ACCESS: MMXXV Dev Setup\"\n\n### Getting Started\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/RubricLab/mmxxv.git\n   cd mmxxv\n   ```\n\n2. Install dependencies:\n   ```bash\n   bun install\n   ```\n\n3. Set up environment variables:\n   - Copy `.env.example` to `.env`\n   - Configure the variables as described above\n\n4. Initialize the database:\n   ```bash\n   bun db:generate\n   bun db:push\n   ```\n\n5. Start the development server:\n   ```bash\n   bun dev\n   ```\n\n6. Open [http://localhost:3000](http://localhost:3000) in your browser\n\n### NixOS\n\nInstalling dependencies (`bun install`) fails because prisma [doesn't release precompiled engine files for NixOS](https://www.prisma.io/docs/orm/more/under-the-hood/engines#using-custom-engine-libraries-or-binaries). Instead you can use [a flake](https://github.com/prisma/prisma/issues/3026#issuecomment-927258138) to let nix install the prisma engines which are then accessed via environment variables.\n\n## Project Structure\n\n```\nsrc/\n├── app/                 # Next.js app router pages\n├── lib/\n│   ├── actions/        # Server actions\n│   ├── components/     # React components\n│   ├── services/      # Service layer\n│   └── utils/         # Utility functions\n└── schema/            # Prisma schema\n```\n\n## Development Guidelines\n\n### Code Style\n\n- We use Biome for code formatting and linting\n- Run `bun lint` to check for issues\n- Run `bun lint:fix` to automatically fix issues\n- Run `bun format` to format code\n\n### Database Management\n\n- `bun db:push` - Push schema changes to database\n- `bun db:generate` - Generate Prisma client\n- `bun db:studio` - Open Prisma Studio\n\n## Contributing\n\nWe welcome contributions! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'feat: add amazing feature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## Game Rules\n\nFor detailed information about how the game works, please visit the [About page](https://mmxxv.com/about) after setting up the project.\n\n## Support\n\nIf you encounter any issues or need help with development:\n- Open a GitHub issue\n- Join our [Discord community](https://discord.gg/ndC6qaQC)\n\n## License\n\nThis project is licensed under \"go nuts\" - see the package.json file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubriclab%2Fmmxxv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubriclab%2Fmmxxv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubriclab%2Fmmxxv/lists"}