Note: You will need a Redis server to run this app. You can host one from Upstash for free.
- Install dependencies:
bun install- Create an
.envfile:
PORT=3000
DATABASE_URL="file:./dev.db" # Database URL
REDIS_REST_URL="<YOUR_REDIS_URL>" # Redis URL
USERNAME=user # Set your desired username that will be used in frontend
PASSWORD=pass # Set your desired password that will be used in frontend- Run the app:
bun run start-
Scan the QR code from your whatsapp app (mobile) visible in the terminal.
-
You should get some messages in your own whatsapp number you registered with in your phone like
Backend Server Started successfully! 🚀. -
(Optional) You can now connect your frontend with it. Here's one I used: Frontend