- Node >=8.5.0
- Yarn >=1.0.1
- Postgres
Setup your database
$ sudo su postgres
$ createdb databaseName
$ exit
Also you may change the name of database in config/database.js
Clone this repo
$ git clone [email protected]:gsulloa/koa-boilerplate.git project
$ cd project
Setup your env vars
$ export DB_PASSWORD=securepassword
Alternatively with direnv
$ cp .envrc.example .envrc
$ nano .envrc
# modify the env var with your data
Start your server and code!
$ yarn dev
Implemented authentication use JWT. To get it
$ git pull origin auth