Small api using Node, Hapi v17, Knex, and PostgreSQL
Just a simple api messing around with Hapi and its ecosystem. (I had always heard good things about Hapi, but never used it, so I made an excuse to mess around with it for a few days (with Knex - another library I had read good things about). The “theme” deals with famous people from different countries (países)).
knex migrate:make new_migration
knex migrate:latest
knex seed:make new_seed
knex seed:run
‘
"area": 12341234,
"currency": "dollar",
"GDP": 12341234,
"language": "chinese",
"name": "china",
"population": 654654654654
}
}’
"name": "Elvis",
"profession": "singer",
"country": "United States of America"