Skip to content

Personal blog developed based on remix!(基于 remix 开发的个人博客)

License

Notifications You must be signed in to change notification settings

alvin0216/remix-ssr-blog

Repository files navigation

Alvin‘s Blog

技术框架

  1. remix
  2. react 17.0.2
  3. unocss
  4. mysql
  5. prisma

快速上手

  • .env 文件配置环境变量,例如 mysql 的访问地址、github 的授权地址
  • config.yml 是博客的基本配置,比如社交平台、友链等
{
  "postinstall": "remix setup node",
  "start": "remix-serve build",
  "build": "remix build",
  "build:css": "unocss \"app/routes/**/*.tsx\"",
  "dev": "concurrently \"npm run dev:css\" \"remix dev\"",
  "dev:css": "unocss -o ./app/uno.css \"app/**/*.tsx\" --watch",
  "database": "npx prisma db push", // 初始化数据库
  "seed": "ts-node prisma/seed.ts" // 插入数据
}
# 生成数据库表
yarn database

# 初始化数据
yarn seed

# 开始跑
yarn dev

Remix App Server started at http://localhost:3333。

性能体现

统计来源:https://remix.alvin.run

如果该项目对您有所帮助,不妨请作者喝杯奶茶

微信

支付宝

Releases

No releases published

Packages

No packages published