Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/crazywoola/leviosa.dev

Minimal fullstack dev template
https://github.com/crazywoola/leviosa.dev

cloudflare cloudflare-workers fullstack honojs hotwire-stimulus serverless

Last synced: 9 days ago
JSON representation

Minimal fullstack dev template

Awesome Lists containing this project

README

        

# Leviosa.dev

> It’s Leviosa, Not Leviosaaa!

## Development

### Quick Start

#### Worker
```
npm install
cp wrangler.toml.example wrangler.toml
npm run dev
```
#### Site

We use esbuild & hotwire.dev to build the frontend site. Modify the code in `src/client`.

```
npm run build:fe
```

### Database

#### Use Raw SQL

:(

```
npx wrangler d1 execute --local --file=./db/migrations/1.sql
npx wrangler d1 execute --local --command="SELECT * FROM Users"
```
#### Use D1 Migrations
:)

For readable purpose, we use D1 Migrations to manage database migrations.

```
npx wrangler d1 migrations create users
npx wrangler d1 migrations apply --local
npx wrangler d1 migrations list --local
```

## Deploy

```
npm run deploy
```