Code Monkey home page Code Monkey logo

express-template's Introduction

整合使用 express 框架常用的中间件工程,目的是使用该工程可以快速开始项目开发 建议每隔一个月检查下依赖插件是否有新版本,保持所有依赖包都是最新版本

开发环境(process.env.NODE_ENV === 'development')

  • 不对请求 api 进行权限验证
  • 创建的数据库 kuku,数据库用户名和密码 kuku:kuku
  • 会自动初始化 11 用户数据

工程中包含的组件

  • multer 文件上传插件
  • express-session session 插件
  • ejs ejs 模板
  • body-parser 用来解析 post 请求体(支持 json、url-encode)
  • connect-redis 用于存储 session 的 redis 插件
  • axios Promise based HTTP client for the browser and node.js
  • connect-mongo 用于存储 session 的 mongo 插件
  • mongodb mongodb 数据库插件
  • mongoose 在 mongodb 基础上封装一层更易于操作的接口
  • cors 用于配置 cors 跨域
  • later 定时任务解决方案
  • passport oAuth 中间件
  • [passport-local] 结合 passport 中间件使用,用于本地用户名和密码登录
  • [passport-github] 结合 passport 中间件使用,用于 Github 账号登录
  • [passport-linkedin] 结合 passport 中间件使用,用于 LinkedIn 账号登录

资源

express-template's People

Contributors

jesse-chiu avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.