All Projects → ptariche → Ecma7 Koa2 Starter

ptariche / Ecma7 Koa2 Starter

An ECMA7 Koa2 starter

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Ecma7 Koa2 Starter

node-typescript-starter
REST API using Node with typescript, KOA framework. TypeORM for SQL. Middlewares JWT (auth), CORS, Winston Logger, Error, Response
Stars: ✭ 19 (-17.39%)
Mutual labels:  starter, koa2
Nodeclub Koa
use koa to rewrite nodeclub
Stars: ✭ 18 (-21.74%)
Mutual labels:  koa2
Blog
前后端分离+服务端渲染的博客系统. 基于Vue2、Koa2、MongoDB、Redis
Stars: ✭ 644 (+2700%)
Mutual labels:  koa2
Koa Passport
Passport middleware for Koa
Stars: ✭ 748 (+3152.17%)
Mutual labels:  koa2
Webpack Simple Starter
A simple webpack starter without framework (Like Vue, React, Angular, etc.)
Stars: ✭ 661 (+2773.91%)
Mutual labels:  starter
React Native Typescript Boilerplate
The default React Native empty project converted to use TypeScript.
Stars: ✭ 7 (-69.57%)
Mutual labels:  starter
Vue Chat
📲 A web chat application. Vue + node(koa2) + Mysql + socket.io
Stars: ✭ 617 (+2582.61%)
Mutual labels:  koa2
Vue Electron Typescript Quickstart
A boilerplate of Electron app that uses Vue in TypeScript.
Stars: ✭ 22 (-4.35%)
Mutual labels:  starter
Reactnativereduxfaststarter
React Native Redux fast Starter
Stars: ✭ 17 (-26.09%)
Mutual labels:  starter
Node Typescript Koa Rest
REST API boilerplate using NodeJS and KOA2, typescript. Logging and JWT as middlewares. TypeORM with class-validator, SQL CRUD. Docker included. Swagger docs, actions CI and valuable README
Stars: ✭ 739 (+3113.04%)
Mutual labels:  koa2
Vue Koa Demo
🔰A simple full stack demo(CSR & SSR & Docker Support) written by Vue2 & Koa2(Koa1 verson also completed)
Stars: ✭ 730 (+3073.91%)
Mutual labels:  koa2
Universal
Seed project for Angular Universal apps featuring Server-Side Rendering (SSR), Webpack, CLI scaffolding, dev/prod modes, AoT compilation, HMR, SCSS compilation, lazy loading, config, cache, i18n, SEO, and TSLint/codelyzer
Stars: ✭ 669 (+2808.7%)
Mutual labels:  starter
Koa Weixin Jssdk
koa weixin jssdk middleware
Stars: ✭ 7 (-69.57%)
Mutual labels:  koa2
React Isomorphic Boilerplate
🌟 An universal React isomorphic boilerplate for building server-side render web app.
Stars: ✭ 653 (+2739.13%)
Mutual labels:  koa2
Node Express Boilerplate
A boilerplate for building production-ready RESTful APIs using Node.js, Express, and Mongoose
Stars: ✭ 890 (+3769.57%)
Mutual labels:  starter
React Native Dva Starter
a React Native starter powered by dva and react-navigation
Stars: ✭ 637 (+2669.57%)
Mutual labels:  starter
Laravel Boilerplate
Laravel Boilerplate / Starter Kit with Gentelella Admin Theme
Stars: ✭ 704 (+2960.87%)
Mutual labels:  starter
Ghchat
📱A chat application for GitHub. React + PWA + Node(koa2) + Typescripts + Mysql + Socket.io
Stars: ✭ 791 (+3339.13%)
Mutual labels:  koa2
Cykspace Node
博客后台服务~~ 👉👉 http://www.cykspace.com
Stars: ✭ 23 (+0%)
Mutual labels:  koa2
Koa Dec Router
An ES6 decorator + class based router, support inherit, override, priority, auto load controllers, etc.
Stars: ✭ 19 (-17.39%)
Mutual labels:  koa2

ECMA7 Koa2 Starter

PREREQUISITES

  • Couchbase
  • Node 4.3.1 or greater than

Routes

  • /user/create - [POST]

  • Expected input JSON Data

      {
        "email":"[email protected]",
        "firstName":"tester",
        "lastName":"super"
      }
    
  • Expected Response

      {
        "code": 200,
        "data": {
          "user": {
            "created": true
          }
        }
      }
    

Environment Variables

process.env.SECRET
process.env.SALT
process.env.PORT
process.env.COUCHBASE_URI
process.env.COUCHBASE_BUCKET
process.env.PASSWORD

To Run

npm install && gulp && npm start

Function to Chain a Class with Await/async

helpers.chain = async (_functions) => {
  let _this  = null;
  let result = null;
  for (let i = 0; i < _functions.length; i++) {
    let _function = _functions[i];
    result = _this ? await _this[_function]() : await _function();
    _this = result;
  };

  return result;
};

Example of Chain Function

const CHAIN        = require('./../../helpers/index').chain;
let UserController = require('./../../controllers/user');

module.exports.post = async (ctx, next) => {  return ctx.body = await CHAIN([() => { return new UserController(ctx, next); }, 'logic', 'response']); };

Authors

Peter A.Tariche

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].