Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bensimmers/bun-api-base
- Owner: BenSimmers
- Created: 2024-05-18T13:54:46.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-19T04:47:24.000Z (8 months ago)
- Last Synced: 2024-05-19T14:52:46.238Z (8 months ago)
- Topics: bun, express, swagger-ui, typescript
- Language: TypeScript
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```