Skip to content

allcaps/wagtail-live

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wagtail Live

This was my inspiration for high speed publishing:

https://nos.nl/liveblog/2274672-historische-zege-ajax-in-bernabeu-1-4-voor-het-eerst-sinds-2003-bij-laatste-acht.html

but it could have been faster and more fun, with Wagtail and Slack!

Installation

  1. Create a database
createdb liveblog
  1. Add your Slack credentials
cp liveblog/settings/.env.example liveblog/settings/.env
  1. Set up the app in a virtual environment:
virtualenv env -p python3.7
source env/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
  1. Log in to the admin. Create a homepage (index) and a child LiveBlog page.

Use ngrok to expose your local web server

brew cask install ngrok
ngrok http 8000

http://localhost:4040/inspect/http

Configure the Slack app

https://api.slack.com/apps/AGTF9MAMN/general?

Event API endpoint https://[HASH].ngrok.io/api/event/

Start Redis

brew services start redis

Slack documentation

About

High speed publishing from Slack to Wagtail

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published