@farbenmeer/bunny
v0.3.3
Published
This is a web framework based on [Bun](https://bun.sh/) and [Tapi](https://www.npmjs.com/package/@farbenmeer/tapi).
Keywords
Readme
@farbenmeer/bunny
This is a web framework based on Bun and Tapi.
Start a project
To scaffold a new project run:
bunx @farbenmeer/bunny initThen run bun run migrate to create the database schema. Bunny uses sqlite as the default database.
Other commands
bun run devto start the development serverbun run buildto build the project for productionbun run startto start the production serverbun run generateto generate a migration file based on the drizzle schema insrc/lib/schema.tsbun run migrateto apply migrations to the database
Project Structure
The main entry points to the project are
src/index.htmlfor the client side application. Set up static tags for the favicon and the site title and optionally add some loading UI while the react bundle is being loaded.src/index.tsxas the react-entrypoint. This sets up the react application and renders it into the DOM. If you add a loading UI to index.html this is the place to remove it before rendering the react application. It imports theAppcomponent that contains the main frontend logic.src/main.cssfor global styles (mainly tailwindcss-setup)src/api.tsfor the API entrypoint (using Tapi'sdefineApi). See Tapi's documentation for more information.src/auth.tsfor defining authentication providers using bun-auth
