Project d8d-remix-tailwind-postcss-antd-yPSp3Bbj

D8D AI 84a161559c Initial commit from template 1 anno fa
app 84a161559c Initial commit from template 1 anno fa
migrations 84a161559c Initial commit from template 1 anno fa
public 84a161559c Initial commit from template 1 anno fa
seeds 84a161559c Initial commit from template 1 anno fa
.eslintrc.cjs 84a161559c Initial commit from template 1 anno fa
.gitignore 84a161559c Initial commit from template 1 anno fa
README.md 84a161559c Initial commit from template 1 anno fa
knexfile.js 84a161559c Initial commit from template 1 anno fa
package-lock.json 84a161559c Initial commit from template 1 anno fa
package.json 84a161559c Initial commit from template 1 anno fa
postcss.config.js 84a161559c Initial commit from template 1 anno fa
tailwind.config.ts 84a161559c Initial commit from template 1 anno fa
tsconfig.json 84a161559c Initial commit from template 1 anno fa
vite.config.ts 84a161559c Initial commit from template 1 anno fa

README.md

欢迎使用 Remix!

新增库

  • Ant Design - 用于构建用户界面的 React UI 库
  • Knex - SQL 查询构建器和数据库迁移工具

开发

运行开发服务器:

npm run dev

数据库操作

运行数据库迁移:

npm run migrate

创建新的迁移文件:

npm run migrate:make <migration_name>

回滚最近的迁移:

npm run migrate:rollback

列出所有迁移及其状态:

npm run migrate:list

运行种子文件:

npm run seed

创建新的种子文件:

npm run seed:make <seed_name>

部署

首先,为生产环境构建您的应用:

npm run build

然后运行数据库迁移:

npm run migrate

最后在生产模式下运行应用:

npm start

现在您需要选择一个主机来部署它。

自行部署

如果您熟悉部署 Node 应用程序,内置的 Remix 应用服务器已经可以用于生产环境。

确保部署 npm run build 的输出:

  • build/server
  • build/client

样式

这个模板已经配置了 Tailwind CSS,为您提供一个简单的默认起点。您可以使用任何您喜欢的 CSS 框架。有关更多信息,请参阅 Vite 关于 CSS 的文档