V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
liuxing
V2EX  ›  Node.js

🚀《Node.js 从入门到上线》A blog build with Koa2. (持续更新中)

  •  
  •   liuxing · 2018-06-04 15:19:25 +08:00 · 4837 次点击
    这是一个创建于 2124 天前的主题,其中的信息可能已经有所发展或是发生改变。

    《 Node.js 从入门到上线》—— Koa2 + MongoDB 搭建博客系统

    GitHub:https://github.com/liuxing/abc-blog

    v2ex markdown 有问题,请移步 github 查看目录

    Table of contents

    1.1 Node.js 的安装与配置

    • 安装 Node.js
    • 使用 nvm
    • 一些有用的工具
    • hello-node

    1.2 Node.js 基础概览

    • node 模块
    • npm 包管理器

    2.1 Koa2 初体验

    • Hello Koa2
    • 使用 supervisor 或者 nodemon

    2.2 MongoDB 的安装及使用

    3.1 开发前的项目配置

    • #规划项目目录结构
    • 使用 editorconfig
    • 使用 commitizen
    • 使用 eslint
    • 使用 Git hooks 自动检查代码

    3.2 把项目跑起来

    • router
    • 配置模板引擎
    • 配置静态资源

    3.3 使用 mongoose 操作数据库

    • 设计 Schema
    • 使用 model

    3.4 用户注册与登录

    • cookie 与 session
    • 用户注册
    • 用户登录
    • 用户登出

    3.5 koa2 中间件开发

    • koa2 中间件机制
    • koa2 中间件机制
    • 消息闪现中间件

    3.6 文章增删改查

    • 文章模型设计
    • 文章发表
    • 文章列表与详情
    • 文章编辑与删除

    3.7 用户权限控制

    3.8 评论功能

    • 设计评论的模型
    • 发布留言
    • 显示留言
    • 删除留言

    更新中....

    4 条回复    2018-06-04 15:59:52 +08:00
    gcli
        1
    gcli  
       2018-06-04 15:27:11 +08:00
    liuxing
        2
    liuxing  
    OP
       2018-06-04 15:28:48 +08:00
    @gcli 哈哈哈,Deno 还是个 demo
    wojfsdj
        3
    wojfsdj  
       2018-06-04 15:58:37 +08:00
    不错,希望持续更新
    liuxing
        4
    liuxing  
    OP
       2018-06-04 15:59:52 +08:00
    @wojfsdj 好的😜 持续更新中...
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1785 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 16:33 · PVG 00:33 · LAX 09:33 · JFK 12:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.