This is API server designed for iEdon-Net. Based on Koa.js.
This project is based on Koa's onion model which means all components and handlers are actually middlewares to extend a http server.
app.js
: Entry pointroutes.js
: Define routes here./handlers
: Handlers for each defined routeproviders
: Extendable basic componentsdb
: Sequelize Models and database contextcommon
: shared functionsacorle-sdk
: My personal internal tiny microservice integration. You can safely turn it off in config.js and just ignore it.
npm install
cd acorle-sdk
npm install
cp ./config.default.js ./config.js
npm run dev
npm install -g pm2
npm run prod