{"id":21106412,"url":"https://github.com/krishmakhijani/zapeit","last_synced_at":"2025-03-14T09:13:53.384Z","repository":{"id":260877225,"uuid":"879143269","full_name":"krishmakhijani/zapeit","owner":"krishmakhijani","description":"Zapeit is a microservices-based automation platform replicating Zapier's core functionalities. It enables users to create automated workflows (Zaps) triggered by webhooks, performing actions like sending emails. The system features a scalable microservices architecture and an event-driven design.","archived":false,"fork":false,"pushed_at":"2024-11-24T13:19:21.000Z","size":274,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T23:37:35.432Z","etag":null,"topics":["docker","express","kafka","nextjs","postgresql","prisma","typescript"],"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/krishmakhijani.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}},"created_at":"2024-10-27T05:20:58.000Z","updated_at":"2025-02-22T22:51:11.000Z","dependencies_parsed_at":"2024-11-03T09:26:01.243Z","dependency_job_id":"3a3bb97a-454b-403e-ba9b-8d1be10ec76f","html_url":"https://github.com/krishmakhijani/zapeit","commit_stats":null,"previous_names":["krishmakhijani/zapeit"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishmakhijani%2Fzapeit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishmakhijani%2Fzapeit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishmakhijani%2Fzapeit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishmakhijani%2Fzapeit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krishmakhijani","download_url":"https://codeload.github.com/krishmakhijani/zapeit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243551328,"owners_count":20309300,"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":["docker","express","kafka","nextjs","postgresql","prisma","typescript"],"created_at":"2024-11-20T00:26:06.083Z","updated_at":"2025-03-14T09:13:53.362Z","avatar_url":"https://github.com/krishmakhijani.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zapeit\n\nZapeit is a microservices-based automation platform replicating Zapier's core functionalities. It enables users to create automated workflows (Zaps) triggered by webhooks, performing actions like sending emails. The system features a scalable microservices architecture and an event-driven design.\n\n## System Design Architecture\n\n![Untitled-2024-07-26-0244](https://github.com/user-attachments/assets/14ac90db-f4ed-41e1-a05d-486943d724f9)\n\n\n\n## Tech Stack\n\n- **Apache Kafka:** Reliable event streaming.\n- **Docker:** Consistent deployment environments.\n- **Next.js:** React framework for frontend.\n- **Express.js:** API handling and routing.\n- **Prisma ORM:** Type-safe database access.\n- **PostgreSQL:** Robust relational database.\n\n## Getting Started\n\nTo get started with Zapeit, follow these steps:\n\n### Prerequisites\n\nEnsure you have Docker installed on your machine. You can download Docker from [here](https://www.docker.com/products/docker-desktop).\n\n### Running PostgreSQL and Apache Kafka with Docker\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/krishmakhijani/zapeit.git\n   cd zapeit\n   ```\n\n2. **Start PostgreSQL:**\n\n   ```bash\n   docker run -p 5432:5432 --name zapier_postgres -e POSTGRES_USER=zapeit -e POSTGRES_PASSWORD=zapeit -e POSTGRES_DB=zapeit_db postgres:13\n   ```\n\n3. **Start Apache Kafka:**\n\n   ```bash\n   docker run --name zapier_kafka -p -d 9092:9092 apache/kafka:latest\n   ```\n\n4. **Get shell access to the Kafka container:**\n\n   ```bash\n   docker ps\n   docker exec -it zapeit_kafka /bin/bash\n   ```\n\n5. **Create a Kafka topic:**\n\n   Inside the Kafka container:\n\n   ```bash\n   cd /opt/kafka/bin\n   ./kafka-topics.sh --create --topic zap-events --bootstrap-server localhost:9092\n   ```\n\n### Installing Dependencies\n\nNavigate to each service directory and install the required dependencies:\n\n```bash\ncd hooks\nnpm install\n\ncd worker\nnpm install\n\ncd processor\nnpm install\n\ncd primary-backend\nnpm install\n```\n\n### Starting the Services\n\nTo start each service, use the following commands:\n\n- **Hook Service:**\n\n  ```bash\n  cd hooks\n  npm run start\n  ```\n\n- **Worker Service:**\n\n  ```bash\n  cd worker\n  npm run start\n  ```\n\n- **Processor Service:**\n\n  ```bash\n  cd processor\n  npm run start\n  ```\n\n- **Primary Backend:**\n\n  ```bash\n  cd primary-backend\n  npm run start\n  ```\n\n### Running the Application\n\n- **Frontend:**\n\n  Navigate to your frontend directory and start the frontend server:\n\n  ```bash\n  cd frontend\n  npm run dev\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrishmakhijani%2Fzapeit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrishmakhijani%2Fzapeit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrishmakhijani%2Fzapeit/lists"}