Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,21 +1 @@
LOG_LEVEL=debug

# configure only you need
# https://bun.sh/docs/api/s3
S3_ACCESS_KEY_ID=minioadmin
S3_SECRET_ACCESS_KEY=minioadminpw
S3_BUCKET=my-first-bucket
#S3_REGION=
S3_ENDPOINT=http://localhost:9000
#S3_SESSION_TOKEN

DB_CONNECTION=sqlite
#DB_HOST=127.0.0.1
#DB_PORT=3306
#DB_DATABASE=my_database
#DB_USERNAME=root
#DB_PASSWORD=

CACHE_CONNECTION=redis
# https://bun.sh/docs/api/redis#getting-started
REDIS_URL=redis://localhost:6379
20 changes: 5 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,18 @@ This project is created by `bun create ndxbn/bun`.

## Requirements

- [Bun](https://bun.sh/)
- [Docker](https://docker.com/) or [podman](https://podman.io/)
- [Bun](https://bun.sh/): Typescript Runtime
- [Docker](https://docker.com/) or [podman](https://podman.io/): Middleware Container Runtime

## Getting Start

```bash
# clone this repository
git clone XXX
cd XXX
# install dependencies
git clone XXX && cd XXX
bun install
# setup development environment, initialize application
bun dev
# run middleware
docker compose up -d # or `podman compose up -d`
# run CLI application
bun cli init:app

bun cli -h
# or start server
bun start
```

Expand All @@ -45,7 +39,3 @@ bun start
bun test
```

## What to use Docker

- startup Middlewares
- [lint GitHub Action](./.github/lint.compose.yaml): do `cd .github` before run it
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@
},
"scripts": {
"dev": "bun scripts/dev.ts",
"postinstall": "bun scripts/postinstall.ts",
"start": "bun src/server.ts",
"cli": "bun src/cli.ts",
"lint": "biome check",
"lint:docs:ja": "textlint docs/ja/",
"fmt": "biome check --write --unsafe",
"prepack": "bun build src/index.ts src/cli.ts --outdir . --sourcemap --minify"
"prepack": "bun build src/index.ts src/cli.ts --outdir . --minify",
"init:app": "bun scripts/init-app.ts"
},
"files": []
}
1 change: 1 addition & 0 deletions scripts/init-app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//
1 change: 1 addition & 0 deletions scripts/postinstall.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("I am scripts/postinstall.ts file");
Loading