Skip to content

Repository files navigation

definy

いろいろ整理中なため ファイル数が極端に少ないです... いろいろ調整する前 https://github.com/narumincho/definy/tree/prev2023

definyのスクリーンショット

フォルダとファイルの説明

  • .github/workflows/pull_request.yml: Pull Request したときに実行されるテストの処理が書かれている

  • .vscode: VSCode 向けの設定

  • assets: スタティックなファイルが置かれている

  • definy-build: ビルドスクリプト

  • definy-client: ブラウザで動かすコード

  • definy-server: サーバーで動かすコード

  • definy-ui: ブラウザとサーバーでレンダリングする共通のUIコンポーネント

  • docs: ドキュメントが置かれている

  • narumincho-vdom: 仮想DOMのライブラリ

  • narumincho-vdom-client: ブラウザで動かす仮想DOMのライブラリ

  • web-distribution: definy-build で生成したファイル (gitignore している)

事前にインストールが必要

cargo install wasm-bindgen-cli --version 0.2.126

DB 起動コマンド

docker run -d --name definy-dev-db -e POSTGRES_DB=postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -p 5432:5432 postgres:17-alpine

データ保持をする場合

docker run -d --name definy-dev-db -e POSTGRES_DB=postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -p 5432:5432 -v pgdata:/var/lib/postgresql/data postgres:17-alpine

本体サーバー起動コマンド

Linux, Mac の場合

cargo run -p definy-build
DATABASE_URL=postgres://postgres:password@localhost:5432/postgres cargo run -p definy-server

Windows PowerShell の場合

cargo run -p definy-build
& { $env:DATABASE_URL="postgres://postgres:password@localhost:5432/postgres"; cargo run -p definy-server }

About

deiny is web app for web app. under development

Topics

Resources

Stars

16 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages