Skip to content
Snippets Groups Projects

slash-done

Slash command to record completed tasks as WordPress posts

Prerequisites:

  • A WordPress site running version 4.6+ and the JSON Basic Authentication plugin
  • nginx or another proxy to front the app

Install:

  1. npm install
  2. Copy config-sample.json to config.json and update to your needs
  3. npm start

Usage:

  1. Make a POST request to /log with a JSON POST body that contains the key text with the item to record. For example:
curl -X "POST" "http://127.0.0.1:9001/log" \
     -H "Content-Type: application/json; charset=utf-8" \
     -d $'{
  "text": "I did a thing"
}'