Project d8d-remix-tailwind-postcss-antd-4kEGBg2H

D8D AI fe3e34dea4 Update files: package-lock.json, .data/.gitkeep, .data/database.sqlite 1 year ago
app f329b1f39f Update files: app/.gitkeep, app/tailwind.css, app/root.tsx, app/db.server.ts, app/entry.server.tsx, app/entry.client.tsx, app/routes/.gitkeep, app/routes/_index.tsx, tailwind.config.ts, package.json, postcss.config.js, public/.gitkeep, README.md, knexfile.js, .eslintrc.cjs, tsconfig.json, package-lock.json, migrations/.gitkeep, migrations/20240101000000_create_admin_user.js, migrations/.gitkeep, vite.config.ts, seeds/.gitkeep, seeds/.gitkeep, seeds/initial_data.js, .gitignore 1 year ago
migrations c5d86626df Update files: tailwind.config.ts, vite.config.ts, postcss.config.js, knexfile.js, migrations/.gitkeep, migrations/20240101000000_create_admin_user.js, package-lock.json, seeds/.gitkeep, seeds/initial_data.js, tsconfig.json, app/entry.server.tsx, app/entry.client.tsx, app/root.tsx, app/routes/_index.tsx, app/tailwind.css, app/db.server.ts, package.json, README.md, .gitignore, .eslintrc.cjs 1 year ago
public f329b1f39f Update files: app/.gitkeep, app/tailwind.css, app/root.tsx, app/db.server.ts, app/entry.server.tsx, app/entry.client.tsx, app/routes/.gitkeep, app/routes/_index.tsx, tailwind.config.ts, package.json, postcss.config.js, public/.gitkeep, README.md, knexfile.js, .eslintrc.cjs, tsconfig.json, package-lock.json, migrations/.gitkeep, migrations/20240101000000_create_admin_user.js, migrations/.gitkeep, vite.config.ts, seeds/.gitkeep, seeds/.gitkeep, seeds/initial_data.js, .gitignore 1 year ago
seeds c5d86626df Update files: tailwind.config.ts, vite.config.ts, postcss.config.js, knexfile.js, migrations/.gitkeep, migrations/20240101000000_create_admin_user.js, package-lock.json, seeds/.gitkeep, seeds/initial_data.js, tsconfig.json, app/entry.server.tsx, app/entry.client.tsx, app/root.tsx, app/routes/_index.tsx, app/tailwind.css, app/db.server.ts, package.json, README.md, .gitignore, .eslintrc.cjs 1 year ago
.eslintrc.cjs 76a35c0b45 Initial commit from template 1 year ago
.gitignore 76a35c0b45 Initial commit from template 1 year ago
README.md 76a35c0b45 Initial commit from template 1 year ago
knexfile.js 76a35c0b45 Initial commit from template 1 year ago
package-lock.json fe3e34dea4 Update files: package-lock.json, .data/.gitkeep, .data/database.sqlite 1 year ago
package.json 76a35c0b45 Initial commit from template 1 year ago
postcss.config.js 76a35c0b45 Initial commit from template 1 year ago
tailwind.config.ts 76a35c0b45 Initial commit from template 1 year ago
tsconfig.json 76a35c0b45 Initial commit from template 1 year ago
vite.config.ts 76a35c0b45 Initial commit from template 1 year ago

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