Giter Site home page Giter Site logo

node-blog's Introduction

node-blog

License js-standard-style

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

脚手架工具npm

之前一个同学说,要新建这么多文件好麻烦。所以写了个脚手架工具: koa2-starter-cli 可通过命令行接口自定义模板引擎以及ESLint,同时包含了nodemon、husky、lint-staged、commitizen之类的辅助工具。(目录结构与本教程略微有不同)

使用方式:

# 下载脚手架工具
$ npm install -g koa2-starter
# 生成项目
$ koa2 init <project-name>
# 进入项目
$ cd <project-name>
$ git init
$ npm install
$ npm run dev

更多详细:koa2-starter-cli

Table of contents

入门篇

1.1 Node.js 的安装与配置

1.2 Node.js 基础概览

2.1 Koa2初体验

2.2 MongoDB的安装及使用

3.1 开发前的项目配置

3.2 把项目跑起来

3.3 使用mongoose操作数据库

3.4用户注册与登录

3.5 koa2中间件开发

3.6 文章增删改查

3.7 用户权限控制

3.8 评论功能

3.9 一些安全问题

3.10 分类管理

3.11 分页功能

3.12 koa2错误处理及404

  • 3.13 测试
  • 3.14 持续集成

上线篇

4.1 域名与服务器

License

MIT . Copyright (c) Liu Xing

本作品采用知识共享 署名-非商业性使用 4.0 国际许可协议 进行许可。

知识共享许可协议

node-blog's People

Contributors

liuxing avatar easy10010 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.