0.4.1 • Published 8 years ago
generator-simple-koa-api v0.4.1
Simple Koa API Yeoman Generator
npm install -g yo
npm install -g generator-simple-koa-api
psql -c 'create database my_api_db' # create a database for your api
mkdir myapi; cd myapi
yo simple-koa-api
# edit .env, .env-test, package.json if needed
npm install
node db-migrate.js # migrates the database to the last version
npm test # runs test suite using db configured in .env-test
npm start # runs the api, conntects to db from .env, ctrl+c to exit
npm run db-new your new db migration title # generate new database migration files
# start hacking!