- Multipy Koa-Routers using.
- Flowtype.
- Eslint.
- Backpack.
git clone https://github.com/vamosgs/koa-starter.gitChange .envEXAMPLE to .env for starting develompent.
Create your router in src/routes file then import it in src/routes/index.js
example:
const newRouter = require("./newRouter");
const routes = combineRouters([root, newRouter]);-
Build:
yarn build
-
Dev server:
yarn dev
-
Start on your server:
yarn start