{"id":22055731,"url":"https://github.com/harshmangalam/event-blend-server","last_synced_at":"2025-05-12T15:42:59.936Z","repository":{"id":258489218,"uuid":"822061172","full_name":"harshmangalam/event-blend-server","owner":"harshmangalam","description":"Open source meetup alternative backend api powered by Bun","archived":false,"fork":false,"pushed_at":"2024-10-30T18:50:33.000Z","size":231,"stargazers_count":4,"open_issues_count":5,"forks_count":15,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T03:46:17.311Z","etag":null,"topics":["authentication","authorization","bun","hacktoberfest","hacktoberfest11","hacktoberfest2024","javascript","jwt","meetup-api","postgresql","prisma","typescript","zod"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harshmangalam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2024-06-30T07:43:36.000Z","updated_at":"2024-10-30T18:50:38.000Z","dependencies_parsed_at":"2024-10-26T08:17:14.471Z","dependency_job_id":null,"html_url":"https://github.com/harshmangalam/event-blend-server","commit_stats":null,"previous_names":["harshmangalam/event-blend-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshmangalam%2Fevent-blend-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshmangalam%2Fevent-blend-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshmangalam%2Fevent-blend-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harshmangalam%2Fevent-blend-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harshmangalam","download_url":"https://codeload.github.com/harshmangalam/event-blend-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253767245,"owners_count":21961085,"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":["authentication","authorization","bun","hacktoberfest","hacktoberfest11","hacktoberfest2024","javascript","jwt","meetup-api","postgresql","prisma","typescript","zod"],"created_at":"2024-11-30T16:10:59.109Z","updated_at":"2025-05-12T15:42:59.877Z","avatar_url":"https://github.com/harshmangalam.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eventblend API Server\n\n## Setup\n\n### Install dependencies\n\n```\nbun install\n```\n\n### Add env variables\n\n```\ncp .env.example .env\n```\n\n### Prisma migrations\n\n```\nbun prisma:migrate\n```\n\n### Start server\n\n```\nbun run dev\n```\n\n**Setup your postgresql db**\n\n### Prisma\n\n#### Seeding\n\n```\nbun prisma:seed\n```\n\n#### Open studio\n\n```\nbun prisma:studio\n```\n\n#### Reset db\n\n```\nbun prisma:reset\n```\n\n#### Migrations\n\n```\nbun prisma:migrate\n```\n\n### Open\n\nhttp://localhost:3000\n\nAlso setup eventblend frontend locally\nhttps://github.com/harshmangalam/event-blend-frontend\n\n## Tech stack\n\n- Typescript\n- Bun\n- Hono\n- Prisma\n- Zod\n- Postgresql\n\n## Folder structure\n\n- `/prisma/`\n\n  - contains prisma schema, seeds and migrations.\n\n- `/src/config`\n\n  - contains all configurations file like constants, env config etc.. getting used throughout the application\n\n- `/src/lib`\n\n  - contains lib initialization and utility functions.\n\n- `/src/middleware`\n\n  - contains auth and other middlewares.\n\n- `/src/schema`\n\n  - contains global zod schema that are reusable and getting used in more than one files.\n\n- `/src/types`\n\n  - contains global types i.e `Variables` type for hono etc...\n\n- `/src/feature`\n  - contains platform feature i.e\n    - auth\n    - category\n    - event\n    - group\n    - location\n    - network\n    - topic\n    - user\n    - etc...\n\n**Please go through CONTRIBUTING.md file before start contribution and code changes**.\n\n## Docker Support\n\nThis project includes Docker support for easy setup and deployment, using Bun runtime.\n\n### Prerequisites\n\n- Bun\n- Docker and Docker Compose (for Docker setup)\n- PostgreSQL (for local setup without Docker)\n\n### Local Setup\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/harshmangalam/eventblend-api.git\n   cd eventblend-api\n   ```\n\n2. Install dependencies:\n   ```\n   bun install\n   ```\n\n3. Create a `.env` file from the `.env.example`:\n   ```\n   cp .env.example .env\n   ```\n\n4. Update the `.env` file with your local PostgreSQL credentials.\n\n5. Run Prisma migrations:\n   ```\n   bunx prisma migrate deploy\n   ```\n\n6. Start the server:\n   ```\n   bun run dev\n   ```\n\n7. Open http://localhost:3000 in your browser.\n\n### Docker Setup\n\n1. Clone the repository:\n   ```\n   git clone https://github.com/harshmangalam/eventblend-api.git\n   cd eventblend-api\n   ```\n\n2. Create a `.env` file from the `.env.example`:\n   ```\n   cp .env.example .env\n   ```\n\n3. Build and run the Docker containers:\n   ```\n   docker-compose up --build\n   ```\n\n4. In a new terminal, run Prisma migrations:\n   ```\n   docker-compose exec event-blend-server bunx prisma migrate deploy\n   ```\n\n5. The application will be available at `http://localhost:3000`\n\n## Tech Stack\n\n- TypeScript\n- Bun\n- Hono\n- Prisma\n- Zod\n- PostgreSQL\n\n## Folder Structure\n\n- `/prisma/`: Contains Prisma schema, seeds, and migrations.\n- `/src/config/`: Configuration files.\n- `/src/lib/`: Library initialization and utility functions.\n- `/src/middleware/`: Auth and other middlewares.\n- `/src/schema/`: Global Zod schemas.\n- `/src/types/`: Global types.\n- `/src/feature/`: Platform features (auth, category, event, etc.).\n\n## Docker Support\n\n### Stopping the Docker Containers\n\nTo stop the running containers:\n```\ndocker-compose down\n```\n\nTo stop the containers and remove the volumes:\n```\ndocker-compose down -v\n```\n\n### Accessing the Database\n\nTo access the PostgreSQL database directly:\n```\ndocker-compose exec db psql -U postgres -d eventblend\n```\n\n### Viewing Logs\n\nTo view the logs of the event-blend-server:\n```\ndocker-compose logs event-blend-server\n```\n\nFor real-time logs:\n```\ndocker-compose logs -f event-blend-server\n```\n\n## Contributing\n\nPlease read the CONTRIBUTING.md file before making any contributions.\n\n## Community\n\nJoin our Discord Server: https://discord.gg/YNk8MRzb\n\n## Frontend Repository\nSet up the Eventblend frontend locally:\nhttps://github.com/harshmangalam/event-blend-frontend\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshmangalam%2Fevent-blend-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshmangalam%2Fevent-blend-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshmangalam%2Fevent-blend-server/lists"}