Giter VIP home page Giter VIP logo

cms_backend's Introduction

CMS_backend

init project

npm init -y
  1. install koa
npm install koa
npm install nodemon -D
npm install prettier --save-dev
npm install dotenv
  1. ts
npm install typescript ts-node --save-d
npx tsc --init
npm install @types/node @types/koa --save-d
npm install cross-env --save
  1. koa-plugin
pnpm install koa-router
pnpm i --save-dev @types/koa-router
pnpm install koa-bodyparser
pnpm i --save-dev @types/koa-bodyparser
pnpm install mysql2
  1. husky
pnpx husky-init && pnpm install
# 提交前执行prettier
npm run prettier
  1. commitizen
pnpm install commitizen -D
pnpx commitizen init cz-conventional-changelog --save-dev --save-exact
 "scripts": {
   //...
    "commit": "cz"
},
  1. commitlint
pnpm i @commitlint/config-conventional @commitlint/cli -D
// 用于拦截不规范的git commit -m "<不规范message>"
module.exports = {
  extends: ["@commitlint/config-conventional"]
}
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# 用于拦截不规范的git commit -m "<不规范message>"
npx --no-install commitlint --edit
  1. Koa-plugin
pnpm install jsonwebtoken
pnpm i -D @types/jsonwebtoken

cms_backend's People

Contributors

fangdizhong avatar

Watchers

 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.