Skip to content

Pajk/generator-simple-koa-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published