Self hostable single JSON Bucket for our Slack Bot.
- Clone the repository
git clone https://github.com/sdslabs/botdb
- Install node modules and install
pm2
cd botdb
npm i
npm i pm2 -g
- Create
config.json
inside the repository root folder with contents:
{
"token": "< secret bearer token >"
}
- Start the server
pm2 start index.js
All requests must have Content-Type
header set to application/json
and should have a Bearer
authentication token. Token can be any string.
GET /
- Get JSON contents.PUT /
- Write JSON contents. Body should be a valid JSON string.