当前位置: 首页 > 软件库 > Web应用开发 > >

es6-express-mongoose-passport-rest-api

授权协议 Readme
开发语言 JavaScript
所属分类 Web应用开发
软件类型 开源软件
地区 不详
投 递 者 蒲昊苍
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Node boilerplate

This is my node boilerplate starter kit. I will continue to update with the latest tech to help make make node servicessuper easy and efficient to kick start.

Whats out the box?

Frameworks

  • Node 7 + ES6 (Babel)
  • Express
  • Passport
  • Mongoose
  • Joi

Developer tools

  • Jest
  • Docker
  • Husky (Githooks)

Instructions

Install mongodb and fire up the server

mongod

Install yarn. Not used yarn yet? Do its awesome... and required

npm install -g yarn

Pull down the repository

git clone https://github.com/tutts/node-es6-express-mongoose-passport

Run yarn in the root of your project to install its dependencies

yarn

Server

Start in development mode http://localhost:4040/health-check

yarn dev

Build the distributable

yarn build

Build the distributable + start node server http://localhost:8080/health-check

yarn start

Tests

Run tests or code coverage in Jest

yarn test
yarn test:coverage

Running lint (deprecated)

** ESLint has now been removed in favour of Prettier. As of version 1.0.0, semi colons are now optional and disabled asdefault. **

yarn lint
yarn lint:watch
yarn lint:fix // attempts to fix your lint issues for you

Todo

  • add dotenv

Inspired by KunalKapadia and Developit

 相关资料
  • Express & mongoose REST API Boilerplate in ES6 with Code Coverage Sponsor You can support the project by checking out our sponsor page. It takes only one click: Overview This is a boilerplate applicat

  • Express & ES6 REST API Boilerplate This is a straightforward boilerplate for building REST APIs with ES6 and Express. ES6 support via babel REST resources as middleware via resource-router-middleware

  • Koa 2 + Passport + Mongoose + GraphQL Notice You want build a more flexible GraphQL schema, consider using this boilerplate instead: https://github.com/sibelius/graphql-dataloader-boilerplate graffiti

  • Mongoose Node.js Express TypeScript application boilerplate with best practices for API development. The main purpose of this repository is to show a good end-to-end project setup and workflow for wri

  • Node Express Mongoose A boilerplate application for building web apps using express, mongoose and passport. Read the wiki to understand how the application is structured. Usage git clone https://githu

  • Vue-Admin-Express-Mongoose 基于Vue2.0(Vue-cli)+ElementUI+Express+Mongoose的全栈开发环境 前端页面部分基于vueAdmin项目,修复了其中的一些BUG。 OnlineDemo 效果 用法 安装依赖 npm install 开发环境 首先,启动Express服务(4501端口),提供API接口,请确保已经安装MongoDB npm