2.6.0 • Published 5 years ago
@xskytech/create-koa-api v2.6.0
Koa API
Flexible Koa API
Development
git clone git@github.com:xskytech/koa-api.git
cd koa-apiInstallation
npm version >= 5.2.0
npx @xskytech/create-koa-api koa-apinpm version < 5.2.0
npm install --global @xskytech/create-koa-api
@xskytech/create-koa-api koa-apiConfiguration
Change directory
cd koa-apiCopy .env.example to .env and change data
cp .env.example .envLinting
Check lint issues
npm run lintFix lint issues
npm run lint:fixValidate
Validate application
npm run validateMigrate
Create DB
npm run database:createRun migrations
npm run database:migrate:upUndo migrations
npm run database:migrate:downRun seeds
npm run database:seed:upUndo seeds
npm run database:seed:downDrop DB
npm run database:dropRun
Run in development
npm run developRun in production
npm startLicense
This project is licensed under the MIT License. See the LICENSE file for details.