Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Latest commit

 

History

History
43 lines (35 loc) · 1.98 KB

README.md

File metadata and controls

43 lines (35 loc) · 1.98 KB

koa2-starter-kit

Built this so I always have a starting point for a rest api utilizing async/await and es6+ features. Feel free to use it as it is or modify it according to your needs.

Packages Used

Structure

Self explanatory

  • controllers - place for controllers used by routes here
  • middlewares - place for middlewares
  • models - place for mongoose models
  • routes - place koa-trie-router routes
  • server.js - set up server
  • index.js - entry point
  • .env - Environment Variables
  • .eslintrc.json - eslint config

Changelogs

  • Replaced Camo.js with Mongoose
  • Replaced koa-66 with koa-trie-router
  • Added Passport.js
  • Updated several packages
  • Added Prettier