https://github.com/danielcaz/htmx-bun-notes
A simple notes app made with Bun and HTMX. Uses Elysia for content serving/API and MongoDB for storage. Also uses TailwindCSS and DaisyUI for styling.
https://github.com/danielcaz/htmx-bun-notes
bun daisyui elysiajs htmx mongodb tailwindcss
Last synced: 2 months ago
JSON representation
A simple notes app made with Bun and HTMX. Uses Elysia for content serving/API and MongoDB for storage. Also uses TailwindCSS and DaisyUI for styling.
- Host: GitHub
- URL: https://github.com/danielcaz/htmx-bun-notes
- Owner: DanielCaz
- License: mit
- Created: 2023-10-10T01:45:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T02:00:36.000Z (over 2 years ago)
- Last Synced: 2025-03-05T08:40:43.137Z (over 1 year ago)
- Topics: bun, daisyui, elysiajs, htmx, mongodb, tailwindcss
- Language: CSS
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bun + HTMX + Elysia + MongoDB + TailwindCSS example app
Heavily inspired by/based on [bun-htmx](https://github.com/danawoodman/bun-htmx)
A simple notes app made with Bun and HTMX. Uses Elysia for content serving/API and MongoDB for storage. Also uses TailwindCSS and DaisyUI for styling.
I made this to learn Bun and ElysiaJS, and to have a simple example app to refer to in the future. If you have any suggestions for improvements, please let me know!
## Technologies
- [Bun](https://bun.sh/)
- [ElysiaJS](https://elysiajs.com/)
- [HTMX](https://htmx.org/)
- [TailwindCSS](https://tailwindcss.com/)
- [DaisyUI](https://daisyui.com/)
- [MongoDB](https://www.mongodb.com/)
## Getting started
1. Clone this repo
```bash
git clone https://github.com/DanielCaz/htmx-bun-notes.git
```
2. Install dependencies
```bash
bun install
```
3. Create a `.env` file in the root of the project and add the following:
```bash
MONGO_URI=
```
4. Start the server
```bash
bun dev:tailwind
bun dev:server
```
5. Open the app in your browser
```bash
http://localhost:3000
```
## Docker
You can also run this app using Docker. To do so, run the following commands:
```bash
docker-compose build
docker-compose up
```
## License
MIT
I hope this is useful to someone. Do whatever you want with it :D