https://github.com/toweringcloud/express-bun-starter
bun based fullstack express web app using express v4 + pug + mongodb + minio
https://github.com/toweringcloud/express-bun-starter
minio mongodb vultr
Last synced: 3 months ago
JSON representation
bun based fullstack express web app using express v4 + pug + mongodb + minio
- Host: GitHub
- URL: https://github.com/toweringcloud/express-bun-starter
- Owner: toweringcloud
- License: mit
- Created: 2025-06-03T23:42:17.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-06-27T14:04:24.000Z (3 months ago)
- Last Synced: 2025-07-05T03:08:48.226Z (3 months ago)
- Topics: minio, mongodb, vultr
- Language: TypeScript
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bun-express-starter
bun based express web app using mongodb and pug
## how to run
### setup
- install latest bun runtime
```sh
$ curl -fsSL https://bun.sh/install | bash
bun was installed successfully to ~/.bun/bin/bun$ bun -v
1.2.15
```### configure
- install packages with bun
```sh
$ bun init -y
$ bun i
```- create runtime variables
```sh
$ cat .env
API_PORT_NO=4000
COOKIE_SECRET={YOUR_COOKIE_SECRET}
DB_URL=mongodb://127.0.0.1:27017/movie
GH_API_URL=https://api.github.com
GH_AUTH_URL=https://github.com/login/oauth
GH_CLIENT_ID={YOUR_GITHUB_CLIENT_ID}
GH_CLIENT_SECRET={YOUR_GITHUB_CLIENT_SECRET}
```### launch
- run bun app with development mode
```sh
$ bun dev
```### test
- download sample media file
- [Pexcel](https://www.pexels.com)
- [Others](https://www.sample-videos.com)