Skip to content

LibreService/my_boilerplate

Repository files navigation

My Boilerplate

Quick start a new LibreService project.

https://my-boilerplate.vercel.app/

This is a STATIC website so you DON'T need to own a server to host it.

All computation is performed in browser, thank to Web Assembly.

It's also a PWA, so you can install it like a native App and use it OFFLINE.

Self host

Download latest artifact built by GitHub Actions.

Development workflow

My Boilerplate can be built on Linux.

Install node

You may use nvm to install node.

Install pnpm and dev dependencies

npm i -g pnpm
pnpm i

Install emsdk

https://emscripten.org/docs/getting_started/downloads.html

Build wasm

pnpm run lib
pnpm run wasm

Run develop server

pnpm run dev

The app is accessible at http://localhost:5173

Lint

pnpm run lint:fix

Check type

pnpm run check

Build

pnpm run build

Test

pnpm run test

Preview

pnpm run preview

Deploy (maintainer only)

# set VERSION to avoid CDN and browser caching old version
export LIBRESERVICE_CDN=https://cdn.jsdelivr.net/npm/@libreservice/my-boilerplate@VERSION/dist/

vercel build --prod
npm publish
vercel deploy --prebuilt --prod

License

AGPLv3+