Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bensimmers/bun-api-base

lightweight bun/express api template for my projects
https://github.com/bensimmers/bun-api-base

bun express swagger-ui typescript

Last synced: about 1 month ago
JSON representation

lightweight bun/express api template for my projects

Awesome Lists containing this project

README

        

# bun-api-base

## Overview

This project uses Bun to manage and run a TypeScript application. Below are the commands to run, watch, and build the application, as well as to build and run the Docker container.

## Commands

### Running the Application

To run the application, use the following command:

```bash
bun index.ts
```

### Watching the Application

To watch the application, use the following command:

```bash
bun watch index.ts
```

### Building the Application

To build the application, use the following command:

```bash
bun build index.ts
```

### Building and Running the Docker Container

To build and run the Docker container, use the following command:

```bash
docker build -t bun-api-server .
```

```bash
docker run -p 8080:8080 bun-api-server
```