keyding / blocklet-profile

A blocklet project for displaying personal profiles.
Other
1 stars 0 forks source link

blocklet-profile

A blocklet project for displaying personal profiles.

Run blocklet server

Create a new directory, e.g. blocklet-server-data.

mkdir blocklet-server-data

Init a project with bun

cd blocklet-server-data && bun init -y

Installing @blocklet/cli

bun add -D @blocklet/cli

Add the command to package.json

{
  "scripts": {
    "server:init": "blocklet server init",
    "server:start": "blocklet server start",
    "server:stop": "blocklet server stop"
  }
}

Init blocklet server

bun run server:init

Run blocklet server

bun run server:start

# If you want to stop the blocklet server, run the command:
bun run server:stop

Development Blocklet

Install dependencies

bun install

Blocklet development

bun run dev

Blocklet bundle

bun run build

Blocklet deploy

# <blocklet-app-id> See the Server's application details page.
bun run deploy --app-id <blocklet-app-id>

Alternatively, create a new .env file and add BLOCKLET_DEPLOY_APP_DID="blocklet-app-id",

bun run deploy

Please refer to:Deploy your blocklet

Other commands:

# Lint and fix
bun run lint
bun run lint:fix

# Upgrade deps
bun run up

# Bump version
bun run bump-version