vipickering / mastr-cntrl

A Micropub Microservice
MIT License
26 stars 2 forks source link
api indieweb micropub microservice nodejs rest-api syndication webmention

About

Mastr Cntrl is a part of a Microservices suite of IndieWeb tools.

Purpose

The service:

Install

  1. Download the content and install with npm install.
  2. Create your .env file and use the sample.env as your guide.
  3. Run with npm start

Dependencies

Timezone

You will need to specify your timezone using this timezone list in the .env file. Use the sample.env as your guide.

The timezone is used to generate the blog post frontmatter and is also used on my blog to generate URLs. You may also do the same, so I recommend setting it to a 24 local timezone to avoid clashes in a 12 hour period or to avoid posts published at random times, instead of your local time.

It is also advantageous to do this so you are not constrained where you host Mastr-Cntrl. You can host it in one part of the world and post using your local time if you like.

Optional extras

Slack

If you wish to use additional Slack logging:

  1. Create an 'Incoming WebHooks app', over on Slack.
  2. Copy the webhook key., generated.
  3. Paste the key in to your .env file following the sample.env file as a guide.

Syndicating to Twitter

Mastr-Cntrl doesn't syndicate to Twitter (but mc-syndication does). However if you are creating a Micropub post and wish to syndicate to Twitter, the Micropub client needs to know your Twitter details, so they can be saved alongside the post in the frontmatter.

Add your twitter username in the .env file following the sample.env file as a guide and it will appear in the micropub client as an option.