2.6.0 • Published 4 years ago

@xskytech/create-koa-api v2.6.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Koa API

Flexible Koa API

Development

git clone git@github.com:xskytech/koa-api.git
cd koa-api

Installation

npm version >= 5.2.0

npx @xskytech/create-koa-api koa-api

npm version < 5.2.0

npm install --global @xskytech/create-koa-api
@xskytech/create-koa-api koa-api

Configuration

Change directory

cd koa-api

Copy .env.example to .env and change data

cp .env.example .env

Linting

Check lint issues

npm run lint

Fix lint issues

npm run lint:fix

Validate

Validate application

npm run validate

Migrate

Create DB

npm run database:create

Run migrations

npm run database:migrate:up

Undo migrations

npm run database:migrate:down

Run seeds

npm run database:seed:up

Undo seeds

npm run database:seed:down

Drop DB

npm run database:drop

Run

Run in development

npm run develop

Run in production

npm start

License

This project is licensed under the MIT License. See the LICENSE file for details.

2.6.0

4 years ago

2.5.0

4 years ago

2.4.0

4 years ago

2.3.2

4 years ago

2.3.0

4 years ago

2.3.1

4 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago