# web-starter **Repository Path**: liweiboy/web-starter ## Basic Information - **Project Name**: web-starter - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-24 - **Last Updated**: 2026-02-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 一、sea-orm https://www.sea-ql.org/SeaORM/ ## 1. 环境配置 Set DATABASE_URL in your environment, or create a .env file in your project root. Specify your database connection. ``` DATABASE_URL=protocol://username:password@localhost/database ``` ## 2. 安装 `sea-orm-cli` ``` cargo install sea-orm-cli@1.1.19 ``` ## 3. 生成 Entity 文件 ``` sea-orm-cli generate entity -t to_order --with-serde both --model-extra-attributes 'serde(rename_all = "camelCase")' --date-time-crate chrono -o ./src/entity ```