A simple REST server build with JS on a pg DB.
yarn # or npm i
yarn migrate # or npm run migrate
yarn start # or npm run start
When server is up :
localhost:PORT => 'OK'
localhost:PORT/books?id=2fb4d4e0-4625-49b3-add0-b68e13072254 =>
[
{
"id": "2fb4d4e0-4625-49b3-add0-b68e13072254",
"info": {},
"created_at": "2020-12-12T18:42:26.182Z",
"updated_at": "2020-12-12T18:42:26.182Z"
}
]
localhost:PORT/books/create?info={}
=> '2fb4d4e0-4625-49b3-add0-b68e13072254'
localhost:PORT/books/create?info={}&id=2fb4d4e0-4625-49b3-add0-b68e13072254
=> '2fb4d4e0-4625-49b3-add0-b68e13072254'