Skip to content
/ pb-baker Public template

PocketBase application initializer in Bun

Notifications You must be signed in to change notification settings

copongcopong/pb-baker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PocketBase Baker

PocketBase (v0.23.xx, Extend with JavaScript) project initializer in Bun

Stack Structure

  • /app/** contains TS files that will be loaded as JSVM libs and hooks (CJS bundled)
  • /app/app.build.ts - build script for pb_hooks
  • /app/lib.build.ts - build script for reusable JSVM libs inside pb_hooks
    const lib  = require(`${__hooks}/app/lib`);
    

To use this stack

To install dependencies:

bun install

To run for the first time (will get pocketbase v0.23.1, then create Superuser)

bun run initialize!

To start local development (auto reload and builds pb-related hooks and jsvm libraries):

bun run dev

To build pb-related hooks and jsvm libraries:

bun run build

This project was created using bun init in bun v1.1.35. Bun is a fast all-in-one JavaScript runtime.

About

PocketBase application initializer in Bun

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published