https://github.com/bedtime-coders/bepstack
Bun + ElysiaJS + Prisma = Bepstack. Rolls off the tongue, doesn't it?
https://github.com/bedtime-coders/bepstack
backend bun elysiajs prisma realworld realworld-backend server typescript web
Last synced: 12 months ago
JSON representation
Bun + ElysiaJS + Prisma = Bepstack. Rolls off the tongue, doesn't it?
- Host: GitHub
- URL: https://github.com/bedtime-coders/bepstack
- Owner: bedtime-coders
- License: mit
- Created: 2025-06-21T13:10:31.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-21T13:54:18.000Z (12 months ago)
- Last Synced: 2025-06-21T14:29:20.821Z (12 months ago)
- Topics: backend, bun, elysiajs, prisma, realworld, realworld-backend, server, typescript, web
- Language: TypeScript
- Homepage:
- Size: 284 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Bepstack
[](https://github.com/bedtime-coders/bepstack/actions/workflows/tests.yml?query=branch%3Amain+event%3Apush) [](https://discord.gg/8UcP9QB5AV) [](https://github.com/bedtime-coders/bepstack/blob/main/LICENSE) [](https://bun.sh/) [](https://elysiajs.com/) [](https://www.prisma.io/) [](https://biomejs.dev/) [](https://scalar.com/) [](https://github.com/bedtime-coders/bepstack/stargazers/)
[Bun](https://bun.sh) + [ElysiaJS](https://elysiajs.com) + [Prisma](https://www.prisma.io/) Stack
## What is this?
**Bepstack** is a collection of bleeding-edge technologies to build modern web applications.
Including:
- **B**: [Bun](https://bun.sh) - Runtime + package manager, [Biome](https://biomejs.dev) - Code quality
- **E**: [ElysiaJS](https://elysiajs.com) - HTTP Framework
- **P**: [Prisma](https://www.prisma.io) - ORM
This project demonstrates the stack in action via a [RealWorld](https://github.com/gothinkster/realworld) example.
## Development
1. Install dependencies
```bash
bun install
```
2. Copy `.env.example` to `.env` and fill in the values
```bash
cp .env.example .env
```
3. Start the database server
```bash
bun db:start
```
4. Push the database schema to the database
```bash
bun db:push
```
5. Start the development server
```bash
bun dev
```
6. (Optional) Start the [database studio](https://www.prisma.io/studio)
```bash
bun db:studio
```
## Testing
Run all tests:
```bash
bun run test # Not `bun test`!
```
Or run different test suites individually:
```bash
bun test:api # Run the API tests
bun test:unit # Run the unit tests
```
> [!TIP]
> To create test-specific environment configuration, create a `.env.test` file. You may use `.env.test.example` as a template:
> ```bash
> cp .env.test.example .env.test
> ```
## Building for production
> [!TIP]
> See more info in ElysiaJS's [building for production](https://elysiajs.com/tutorial.html#build-for-production) guide.
1. Build the app
```bash
bun run build # not `bun build`!
```
2. Run the production server (preview)
```bash
bun preview
```
## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md) for more information, including how to set up your development environment.