Skip to content

Latest commit

聽

History

History
聽
聽

lowdb

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
聽
聽
聽
聽
聽
聽
聽
聽

README.md

LowDB example

A simple posts app using tinyhttp and LowDB.

Setup

Install dependencies

tinyhttp new lowdb

Run

node index.js

Endpoints

GET / will return all available posts

GET /:id will return a post with specified id

POST / will insert a new post using the title query

PUT /:id will like a post with specified id

DELETE /:id will delete a post with specified id