pi0 / nuxt-on-pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nuxt on PI

Nuxt hosted on a Raspberry Pi Zero 2W board. (tweet)

⚡️ Live URL: https://pizero.pi0.io

Development

Install bun

Start the development server on http://localhost:3000

bun dev

Production

First time setup

Install bun on your board

Setup cloudflare tunnel on your board and map to http://localhost:3000 (learn more)

Deploy

Build app for production from your PC:

bun build --preset bun

Copy .output directory to your board:

rsync -Lavz .output/ user@ip:app

Optionally install and run tmux or screen

Start bun server:

bun --watch app/server/index.mjs

About


Languages

Language:Vue 88.2%Language:TypeScript 11.8%