Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bensimmers/blog-post-api
https://github.com/bensimmers/blog-post-api
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bensimmers/blog-post-api
- Owner: BenSimmers
- Created: 2024-11-02T06:10:48.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-03T11:26:29.000Z (2 months ago)
- Last Synced: 2024-11-03T12:22:11.087Z (2 months ago)
- Language: TypeScript
- Size: 8.79 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
```