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!
-
Notifications
You must be signed in to change notification settings - Fork 0
License
Pajk/generator-simple-koa-api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published