This repository contains the backend service for UptimeBot, built with Bun.js and TypeScript. It leverages Redis for data storage and BullMQ for robust job queuing, enabling efficient and reliable uptime monitoring.
Bun.js: A fast all-in-one JavaScript runtime.
Redis: An in-memory data structure store, used for both data persistence and as a message broker for BullMQ.
BullMQ: A powerful, fast, and reliable queue system based on Redis.
To get this project up and running on your local machine, follow these steps:
-
Clone the Repository git clone https://github.com/pradeepbgs/uptime-backend.git
cd uptimebot-backend
-
cd uptimebot-backend
-
bun install
-
Environment Variables Setup
MONGODB_URL= JWT_SECRET=upbot
GOOGLE_CLIENT_ID=
ACCESS_TOKEN_SECRET=ACCESS_TOKEN_SECRET ACCESS_TOKEN_EXPIRY=5d REFRESH_TOKEN_SECRET=REFRESH_TOKEN_SECRET REFRESH_TOKEN_EXPIRY=15d
PORT=8000
MAIL_USER=[email protected] MAIL_PASS=
PRODUCTION=false APP_URL=http://13.203.175.105:3000
Note: Ensure your Redis server is running and accessible from where you are running this service.
Running the Service Once the dependencies are installed and the .env file is configured, you can start the backend service: