V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
custw
V2EX  ›  问与答

使用 nextjs 搭建博客系统

  •  
  •   custw · 2021-02-15 21:28:36 +08:00 · 1923 次点击
    这是一个创建于 1165 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Wipi

    前后端分离,服务端渲染的博客系统。支持特性:

    • 文章创建、编辑、发布
    • 文章及页面评论
    • 文章搜索及搜索记录管理
    • 页面动态创建
    • 文件上传(上传到 阿里云 OSS )
    • 邮件通知
    • 动态系统设置(系统标题、Logo 、favicon 、页脚及 SEO 配置等)
    • 系统访问统计( ip + user-agent )

    使用技术:react.jstypescriptnextjsnestjsmysql

    线上预览

    • 首页
    • 文章
    • 文章加密
    • 后台

    前台页面

    地址: https://blog.wipi.tech/

    后台页面

    地址: https://admin.blog.wipi.tech/ (支持访客注册,也可使用账户:wipi wipi123456)。

    本地启动

    • 安装依赖

    首先安装 MySQL,推荐使用 docker 进行安装。

    docker run -d --restart=always --name wipi-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root mysql
    
    • clone 本项目。
    git clone --depth=1 https://github.com/zhxuc/wipi.git your-project-name
    

    然后安装项目 node 依赖。

    lerna bootstrap
    
    • 启动项目
    lerna run dev
    

    前台页面地址:http://localhost:3000。 后台管理地址:http://localhost:3001。 服务接口地址:http://localhost:4000

    首次启动,默认创建管理员用户:admin,密码:admin (可在 server/src/config 文件中进行修改)。 [PS] 如服务端配置启动失败,请先确认 MySQL 的配置是否正确,配置文件在 server/src/config

    项目部署

    在服务器使用 pm2 进行部署即可,可以查看 deploy.sh 文件。nginx 配置可根据需要自定义。

    第 1 条附言  ·  2021-02-16 12:55:54 +08:00
    Showfom
        1
    Showfom  
       2021-02-15 21:39:39 +08:00 via iPhone
    支持下 希望能持续更新
    rilong12
        2
    rilong12  
       2021-02-15 22:43:15 +08:00
    github 404
    NetworkManager
        3
    NetworkManager  
       2021-02-16 08:54:24 +08:00
    支持大佬
    custw
        4
    custw  
    OP
       2021-02-16 12:56:02 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3668 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:29 · PVG 18:29 · LAX 03:29 · JFK 06:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.