https://github.com/sdslabs/botdb
Self hostable single JSON Bucket for our Bot
https://github.com/sdslabs/botdb
Last synced: 3 months ago
JSON representation
Self hostable single JSON Bucket for our Bot
- Host: GitHub
- URL: https://github.com/sdslabs/botdb
- Owner: sdslabs
- Created: 2020-03-20T16:18:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-20T20:41:50.000Z (about 6 years ago)
- Last Synced: 2025-04-21T22:36:11.892Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 4
- Watchers: 10
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# botdb
Self hostable single JSON Bucket for our [Slack Bot](https://github.com/sdslabs/bot).
# Setup
1. Clone the repository
```
git clone https://github.com/sdslabs/botdb
```
2. Install node modules and install `pm2`
```
cd botdb
npm i
npm i pm2 -g
```
3. Create `config.json` inside the repository root folder with contents:
```json
{
"token": "< secret bearer token >"
}
```
4. Start the server
```
pm2 start index.js
```
## API
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.