Project d8d-remix-tailwind-postcss-antd-RHcUXWJJ

D8D AI c2f75ca70c Initial commit from template 1 년 전
app c2f75ca70c Initial commit from template 1 년 전
migrations c2f75ca70c Initial commit from template 1 년 전
public c2f75ca70c Initial commit from template 1 년 전
seeds c2f75ca70c Initial commit from template 1 년 전
.eslintrc.cjs c2f75ca70c Initial commit from template 1 년 전
.gitignore c2f75ca70c Initial commit from template 1 년 전
README.md c2f75ca70c Initial commit from template 1 년 전
knexfile.js c2f75ca70c Initial commit from template 1 년 전
package-lock.json c2f75ca70c Initial commit from template 1 년 전
package.json c2f75ca70c Initial commit from template 1 년 전
postcss.config.js c2f75ca70c Initial commit from template 1 년 전
tailwind.config.ts c2f75ca70c Initial commit from template 1 년 전
tsconfig.json c2f75ca70c Initial commit from template 1 년 전
vite.config.ts c2f75ca70c 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 的文档