Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

mongodb-developer/getting-started-bun-mongodb

Repository files navigation

Notice: Repository Deprecation

This repository is deprecated and no longer actively maintained. It contains outdated code examples or practices that do not align with current MongoDB best practices. While the repository remains accessible for reference purposes, we strongly discourage its use in production environments. Users should be aware that this repository will not receive any further updates, bug fixes, or security patches. This code may expose you to security vulnerabilities, compatibility issues with current MongoDB versions, and potential performance problems. Any implementation based on this repository is at the user's own risk. For up-to-date resources, please refer to the MongoDB Developer Center.

Getting Started with Bun and MongoDB

Introduction

This project sets up a server using JavaScript runtime Bun and MongoDB, using the Hono framework for routing and controllers.

Prerequisites

Installation

  1. Clone the repository:

    git clone <repo-url>
    cd getting-started-bun-mongodb
  2. Install dependencies:

    bun install
  3. Configure MongoDB:

    Create a .env file in the root directory with your MongoDB URI and Port:

    MONGODB_URI=the_mongodb_uri
    PORT=<port>

Usage

  1. Start the server:

    bun run start
  2. Access the server:

    Visit http://localhost:3000 (default port, configurable via .env).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •