Project d8d-remix-tailwind-postcss-antd-KCTiPlsT

D8D AI dc15fc9e4e Initial commit from template 1 жил өмнө
app dc15fc9e4e Initial commit from template 1 жил өмнө
migrations dc15fc9e4e Initial commit from template 1 жил өмнө
public dc15fc9e4e Initial commit from template 1 жил өмнө
seeds dc15fc9e4e Initial commit from template 1 жил өмнө
.eslintrc.cjs dc15fc9e4e Initial commit from template 1 жил өмнө
.gitignore dc15fc9e4e Initial commit from template 1 жил өмнө
README.md dc15fc9e4e Initial commit from template 1 жил өмнө
knexfile.js dc15fc9e4e Initial commit from template 1 жил өмнө
package-lock.json dc15fc9e4e Initial commit from template 1 жил өмнө
package.json dc15fc9e4e Initial commit from template 1 жил өмнө
postcss.config.js dc15fc9e4e Initial commit from template 1 жил өмнө
tailwind.config.ts dc15fc9e4e Initial commit from template 1 жил өмнө
tsconfig.json dc15fc9e4e Initial commit from template 1 жил өмнө
vite.config.ts dc15fc9e4e Initial commit from template 1 жил өмнө

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 的文档