a Django-based indieweb.org site https://00dani.me/
Find a file
2024-05-19 16:04:00 +10:00
entries Paginate without errors if a page doesn't exist 2024-05-19 15:59:43 +10:00
home Run Black over the whole codebase 2023-08-10 16:52:37 +10:00
lemonauth Update Tippy.js to v6.3.7 2024-03-13 19:12:36 +11:00
lemoncurry Paginate without errors if a page doesn't exist 2024-05-19 15:59:43 +10:00
lemonshort Run Black over the whole codebase 2023-08-10 16:52:37 +10:00
micropub Run Black over the whole codebase 2023-08-10 16:52:37 +10:00
users Ensure User.avatar is optional 2024-03-13 15:58:24 +11:00
webmention Run Black over the whole codebase 2023-08-10 16:52:37 +10:00
wellknowns Update Nostr name aliases to match prod username 2023-08-10 19:32:41 +10:00
.gitignore Swap from Poetry to PDM 2024-03-13 18:10:51 +11:00
.gitmodules Fix submodule not to use deprecated git:// protocol 2024-03-13 15:28:37 +11:00
gunicorn.py Run Black over the whole codebase 2023-08-10 16:52:37 +10:00
lemoncurry.paw Loosen the checks on IndieAuth parameters so that generic OAuth 2.0 clients like Paw.app can be used 2018-06-23 13:43:15 +10:00
lemoncurry.svg Add the lemoncurry logo - yes, it's just FA's lemon layered over a dark circle 2018-03-08 15:37:52 +11:00
LICENSE Update year range in LICENSE 2024-05-19 13:04:19 +10:00
manage.py Make development-specific settings file 2017-10-23 08:55:07 +11:00
package.json v1.12.4 2023-08-16 11:52:59 +10:00
pdm.lock Remove unused django-analytical plugin 2024-03-13 19:03:58 +11:00
pyproject.toml v1.12.5 2024-05-19 16:04:00 +10:00
pytest.ini Fix the tests by ensuring lemoncurry.settings.test is always loaded regardless of the environment 2018-07-11 13:06:40 +10:00
README.md Fix bad indent and a few actual errors in README.md 2018-06-12 12:16:18 +10:00
yarn.lock Do a yarn upgrade c: 2019-01-25 10:21:25 +11:00

lemoncurry (always all-lowercase) is a Django-based personal site designed to operate as part of the IndieWeb. It currently supports the following IndieWeb specifications natively.

  • All content is exposed using standard microformats2 markup, making it easy for other sites and applications across the IndieWeb to consume.
  • Additionally, the site owner's profiles are exposed using rel-me, enabling independent verification of their identity across various services. This permits IndieAuth.com to authenticate the site's owner using a social profile, such as a Twitter account. However, this functionality is not necessary because lemoncurry also fully implements…
  • IndieAuth, an protocol derived from OAuth 2.0 which enables the site's owner to authorise access to their domain directly from the lemoncurry site itself. Additionally, tokens for further access to the lemoncurry site may be requested and issued, including customisable token scope as in OAuth.
  • Micropub is partially supported - using a token obtained through IndieAuth, clients may post new content to the lemoncurry site using either the form-encoded or JSON request formats. There is currently no support for updating or deleting existing content through Micropub, although this is of course planned.
  • Webmention, used to enable rich commenting and social interaction between separate IndieWeb sites, is partially supported. lemoncurry will correctly send webmentions to all URLs mentioned in a published entry. However, it currently does not expose an endpoint for receiving webmentions.
  • WebSub is also partially supported. When content is posted through Micropub, WebSub is pinged as it should be - however, since only creating new content through Micropub is supported, updates do not currently cause a WebSub ping.

Requirements

lemoncurry uses the following tools:

  • Pipenv - developed with Pipenv 2018.5.18, but should work with most versions.
  • Yarn - again, developed with Yarn 1.7.0, but should work with most versions.

As well as the following services:

  • PostgreSQL - create a database named lemoncurry. Socket auth is recommended, so ensure the UNIX user you'll be running lemoncurry with has access to that database. Alternatively, set the POSTGRES_PASSWORD environment variable to use password auth.
  • Redis - lemoncurry expects to find Redis on port 6380, rather than the standard port of 6379. Sorry about that.

If you're running in production, I'd recommend Gunicorn, which is already part of lemoncurry's Pipfile. Ensure you run Gunicorn behind a secure reverse proxy, such as Nginx.

If you're running in development, the usual Django runserver command should be fine.

Installation

Clone the repo recursively - since it uses Git submodules - and then install both Python and Node dependencies.

$ git clone --recursive https://git.00dani.me/00dani/lemoncurry
$ cd lemoncurry
$ pipenv install --dev
$ yarn install

Once those steps complete, you should be able to perform the usual Django steps to get a development server up and running. (If you'd prefer, you can use pipenv shell to activate lemoncurry's virtualenv, rather than prefacing each command with pipenv run. I like being explicit.)

$ pipenv run ./manage.py migrate
$ pipenv run ./manage.py collectstatic
$ pipenv run ./manage.py runserver 3000