Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/companyofwords/bun-is-good-init
👌 Experiments in using 🍞 Bun JS (and 🦊 Elysia JS) to replace Node JS and Express JS - with examples of creating routes, controllers, middlewares, using state and derive, protecting routes and more...
https://github.com/companyofwords/bun-is-good-init
bunjs cron drizzle-orm elysiajs expressjs guard jwt nodejs sqlite swagger websockets
Last synced: 20 days ago
JSON representation
👌 Experiments in using 🍞 Bun JS (and 🦊 Elysia JS) to replace Node JS and Express JS - with examples of creating routes, controllers, middlewares, using state and derive, protecting routes and more...
- Host: GitHub
- URL: https://github.com/companyofwords/bun-is-good-init
- Owner: companyofwords
- Created: 2023-11-23T22:00:33.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2023-11-28T19:29:20.000Z (12 months ago)
- Last Synced: 2024-10-16T11:18:46.911Z (about 1 month ago)
- Topics: bunjs, cron, drizzle-orm, elysiajs, expressjs, guard, jwt, nodejs, sqlite, swagger, websockets
- Language: TypeScript
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bun.js is good isn't it? (Initial API baking experiments)
1, 2. 1, 2. This is a test!
Ready for a big new project, I have been creating an API and CRUD app using Bun.js and Elysia.js - using tools and patterns from Node.js and Express.
I want to see whether Bun.js and Elysia.js are as good and stand up as the old stuff...
Here are the docs: http://localhost:8889/docs.
## Or More specifically Elysia.js with Bun.js is really good isn't it?
Bun.js is the much-vaunted like-for-like Node.js alternative (seen also as a Swiss Army knife for developers with lots of extras - testing, managing packages and bundling obviously). Elysia is the most highly rated and proven fastest alternative to Express.
Bun.js should really be called Bun.ts because it uses TYPESCRIPT out of the box!
I have been following along with these doc pages
You can find out more about Bun.js at [https://bun.sh/docs](https://bun.sh/docs) or Elysia.js on [https://elysiajs.com/quick-start.html](https://elysiajs.com/quick-start.html).
Note - Bun.js is still as of writing on version 1 - so will very much evolve...so this code may change too.
## Getting Started / Basics Info
### Development
To start the development server run:
```bash
bun run dev
```Open http://localhost:8889/ to see the results.
### Test
To run test:
```bash
bun run test
```## Experiments
### Documentation (using Swagger)
### Testing
Using Bun JS testing suite
### Elysia and Bun JS docs
Please refer to (Bun Docs) https://bun.sh/docs
(Elysia Docs) https://elysiajs.com/quick-start.html