Live Demo (The site may open slowly because I deployed the project to a free render account)
This is a simple chat application with SvelteKit, Bun, and MongoDB. It's designed to demonstrate how these technologies can seamlessly integrate to create a real-time, user-friendly chat experience as easily as possible.
Clone the repository
git clone https://github.com/bberkay/sveltekit-bun-mongodb.git
Navigate to the project directory and install the dependencies
cd sveltekit-bun-mongodb/app
bun install
cd ../server
bun install
Create a .env file like this in the server directory and add the following variables
MONGO_URL=<your_mongodb_url>
Create a .env file like this in the app directory and add the following variables
PUBLIC_SERVER_ADDRESS=<http/https:your_server_host:your_server_port>
PUBLIC_WS_ADDRESS=<ws/wss:your_server_host:your_server_port>
Run the server then client:
bun run index.ts
cd ../app
bun --bun run dev