https://github.com/afzalimdad9/vercel-clone
Vercel Clone From Scratch 🚀. Made With ❤ by @afzalimdad9
https://github.com/afzalimdad9/vercel-clone
deployment nodejs vercel vercel-clone vercel-deployment
Last synced: 8 months ago
JSON representation
Vercel Clone From Scratch 🚀. Made With ❤ by @afzalimdad9
- Host: GitHub
- URL: https://github.com/afzalimdad9/vercel-clone
- Owner: afzalimdad9
- Created: 2024-09-20T06:28:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-15T03:28:24.000Z (12 months ago)
- Last Synced: 2025-07-26T23:55:13.825Z (11 months ago)
- Topics: deployment, nodejs, vercel, vercel-clone, vercel-deployment
- Language: TypeScript
- Homepage: https://youtu.be/0A_JpLYG7hM
- Size: 468 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vercel Clone
YouTube Video Link:
Whiteboard Diagram:
## Prerequisite
- Node.js: [Master NodeJS Playlist](https://youtube.com/playlist?list=PLinedj3B30sDby4Al-i13hQJGQoRQDfPo&si=5gaDmQ_mzuBHvAsg)
- Redis: [Redis Crash Course](https://youtu.be/Vx2zPMPvmug?si=Z_XT6BMNgkgwnX49)
- Learn Docker:
- Part 1: [Docker in One Shot - Part 1](https://youtu.be/31k6AtW-b3Y?si=FIPffAKieiBGgo5c)
- Part 2: [Docker in One Shot - Part 2](https://youtu.be/xPT8mXa-sJg?si=-6z_HkJZXsvrvSpO)
- Docker with AWS ECS and ECR: [Real World Docker Deployments with AWS](https://youtu.be/AiiFbsAlLaI?si=dKrFZFr7fLBXKSab)
## Setup Guide
This Project contains following services and folders:
- `api-server`: HTTP API Server for REST API's
- `build-server`: Docker Image code which clones, builds and pushes the build to S3
- `s3-reverse-proxy`: Reverse Proxy the subdomains and domains to s3 bucket static assets
## Local Setup
1. Run `npm install` in all the 3 services i.e. `api-server`, `build-server` and `s3-reverse-proxy`
2. Docker build the `build-server` and push the image to AWS ECR.
3. Setup the `api-server` by providing all the required config such as TASK ARN and CLUSTER arn.
4. Run `node index.js` in `api-server` and `s3-reverse-proxy`
At this point following services would be up and running:
| S.No | Service | PORT |
| ---- | ------------------ | ------- |
| 1 | `api-server` | `:9000` |
| 2 | `socket.io-server` | `:9002` |
| 3 | `s3-reverse-proxy` | `:8000` |
## Demo
[Watch The Demo Video](https://imgur.com/I6KgmNR)
## Architecture
