https://sohosai.github.io/dashi-server
シークレットな情報のため、詳細はvaultwardenを参照
docker-compose -f dev.compose.yaml up -d
シークレットな情報のため、詳細はvaultwardenを参照
cargo run --bin presentation
docker-compose -f dev.compose.yaml down --rmi all --volumes
sudo rm -rf postgres neo4j meilisearch init
- meilisearch
以下のURLにアクセス
※マスターキー(MEILI_MASTER_KEY
)及びポート番号(MEILI_PORT
)は.env
参照
http://localhost:<MEILI_PORT>/
- neo4j
以下のURLにアクセス
※ユーザー名(NEO4J_USER
)、パスワード(NEO4J_PASSWORD
)及びポート番号(NEO4J_HTTP_PORT
)は.env
参照
http://localhost:<NEO4J_HTTP_PORT>/
- postgres
shell上で以下コマンドを実行
※ユーザー名(POSTGRES_USER
)、パスワード(POSTGRES_DB
)は、.env
参照
sudo docker exec -it postgres psql -U <POSTGRES_USER> -d <POSTGRES_DB>
docker-compose -f db.compose.yaml down --rmi all --volumes
docker-compose -f server.compose.yaml down --rmi all --volumes
sudo rm -rf postgres neo4j meilisearch init
docker-compose -f entity.compose.yaml up -d
cargo run --manifest-path ./migration/Cargo.toml -- refresh -u postgres://<POSTGRES_USER>:<POSTGRES_PASSWORD>@localhost:<POSTGRES_PORT>/<POSTGRES_DB>
sea-orm-cli generate entity \
-u postgres://<POSTGRES_USER>:<POSTGRES_PASSWORD>@localhost:<POSTGRES_PORT>/<POSTGRES_DB> \
-o entity/src
シークレットな情報のため、詳細はvaultwardenを参照
docker-compose -f prod.compose.yaml up -d
- PostgreSQL
- Neo4j
- Meilisearch
- Cloudflare R2
erDiagram
Item |o--|| Label : "VisibleId<->VisibleId"
Item {
i32 Id PK "1"
String VisibleId FK "0000"
String Name "筑波大學"
String ProductNumber ""
String Description "ルートの物品です"
Option_i32 PurchaseYear ""
Option_i32 PurchasePrice ""
Option_i32 Durability ""
boolean IsDepreciation "false"
Json Connector "vec![]"
boolean IsRent "false"
String Color ""
datetime CreatedAt "Utc::now().naive_utc()"
datetime UpdatedAt "Utc::now().naive_utc()"
String Recipient ""
String RentalDescription ""
Option_datetime LatestRentAt ""
Option_datetime ScheduledReplaceAt ""
Option_datetime LatestReplaceAt ""
}
Label {
String VisibleId UK "0000"
boolean IsMax "true"
String Record "Record::Nothing"
}
Connector {
String id PK "autoincrement"
String name UK "connector.csvのnameが入る"
String status "Status::Active"
}
Color {
String id PK "autoincrement"
String name UK "color.csvのnameが入る"
String hex_color_code UK "color.csvのhex_color_codeが入る"
String status "Status::Active"
}
erDiagram
Item {
i32 Id PK "1"
String VisibleId FK "0000"
String Record "Record::Nothing"
String Name "筑波大學"
String ProductNumber ""
String Description "ルートの物品です"
Option_i32 PurchaseYear "None"
Option_i32 PurchasePrice "None"
Option_i32 Durability "None"
boolean IsDepreciation "false"
Json Connector "vec![]"
boolean IsRent "false"
String Color ""
datetime CreatedAt "Utc::now().naive_utc()"
datetime UpdatedAt "Utc::now().naive_utc()"
String Recipient ""
String RentalDescription ""
datetime LatestRentAt "None"
datetime ScheduledReplaceAt "None"
datetime LatestReplaceAt "None"
}
Connector {
String id PK "autoincrement"
String name UK "connector.csvのnameが入る"
String status "Status::Active"
}
Color {
String id PK "autoincrement"
String name UK "color.csvのnameが入る"
String hex_color_code UK "color.csvのhex_color_codeが入る"
String status "Status::Active"
}
flowchart TD
id1(("id: 1"))