Skip to main content

A simple journal for use at home by the family

Project description

Home Journal

A self-hosted mini journaling site for families for capturing

  • memories
  • stories
  • photos
  • ideas
  • jokes
  • videos
  • and anything else you want to remember

I had an old wordpress blog that I converted to markdown files and needed a way to view the posts. I was looking for something self-hosted and simple. Some of my design requirements were:

  • Mobile friendly and easy to post from mobile
  • Need to look and feel like a mobile app
  • Needed to be all static files, or as close as I could get
  • Needed to be markdown based
  • Needed to have a sane directory structure
  • No authentication or social auth since this is self-hosted
  • No database
  • No javascript frameworks
  • Minimal dependencies
  • No need to edit posts from the UI
  • No need to delete posts from the UI
  • Ability to regenerate all html files
  • Ability to add new posts with a text editor

What's working

  • Github style markdown formatting
  • Index page
  • Light/dark modes
  • New post page
  • Post page
  • Progressive web app (PWA) support (requires https)
  • PWA as share target
  • Rebuild static html files (http://your.server/all)
  • Responsive design
  • Site initialization
  • Splitting Google motion photos into stills and video
  • Static files for all but new entry submission
  • Tags page
  • Video uploads

Future enhancements

  • ¯\_(ツ)\_/¯

Installation

pip install home-journal --user

Usage

Decide on the directory where you wish to place the site files. (e.g. /home/user/home_journal)

home-journal --init --site-directory /home/user/home_journal

Each time home-journal is run with the --init flag it will copy the css, js, and icons from the source tree into the site. If these files have been customized in the site directory, those changes will be overwritten if the --init flag is used again.

Until stable releases are available, the css and js files may change so running with the --init flag will be necessary. Improvements to the css and js files are welcomed as pull requests to the repository.

Help

usage: home-journal [-h] [-i] [-l {debug,info,warning,error,critical}] [-f LOG_FILE] [-p PORT] -s SITE_DIRECTORY [-t TAGS]

options:
  -h, --help            show this help message and exit
  -i, --init            Initialize the site with css, js, and icons
  -l {debug,info,warning,error,critical}, --log_level {debug,info,warning,error,critical}
                        Log level
  -f LOG_FILE, --log_file LOG_FILE
                        Log file
  -p PORT, --port PORT  Port to run the server on
  -s SITE_DIRECTORY, --site_directory SITE_DIRECTORY
                        Path to the site directory
  -t TAGS, --tags TAGS  A list of tags for new posts

In a container

Although currently a container is not available, a sample Container file is available in the repository.

The container will need python, ffmpeg, and libmagic.

an example using fedora would be:

FROM registry.fedoraproject.org/fedora-minimal:38

RUN dnf5 install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-38.noarch.rpm && \
    dnf5 install -y \
        python3 \
        python3-pip \
        ffmpeg && \
    dnf5 clean all -y

RUN pip install --root-user-action=ignore \
        home-journal==0.0.7

built with:

podman build  -f Containerfile --tag home-journal

and run with:

podman run --volume /home/user/site:/mnt/site --publish 9000:8000 home-journal \
    home-journal --log_file /mnt/site/hj.log \
        --log_level debug \
        --site_directory /mnt/site \
        --tags family,friends,food,home,travel \
        --init

Where /home/user/site is the directory where you wish to place the site files and log file.

Please see the individual files in the root of the repo for the most recent examples.

Thank you

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reminisce-0.0.7.tar.gz (470.8 kB view details)

Uploaded Source

Built Distribution

reminisce-0.0.7-py3-none-any.whl (475.5 kB view details)

Uploaded Python 3

File details

Details for the file reminisce-0.0.7.tar.gz.

File metadata

  • Download URL: reminisce-0.0.7.tar.gz
  • Upload date:
  • Size: 470.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for reminisce-0.0.7.tar.gz
Algorithm Hash digest
SHA256 14a29aea4b702651bcbdd15fbd86136c5aefb79696653f66491d1352bcc3062d
MD5 d7583a28be48b2610b2b0d7967077cd5
BLAKE2b-256 4f1956a65ebf8563380932351e3a89dffadad388f114504aa38c166f94f76319

See more details on using hashes here.

File details

Details for the file reminisce-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: reminisce-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 475.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for reminisce-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 89ccedd7ced55688929ae4189b0ab7194a9221f035d49bc5fa01d6ef047cc21e
MD5 c7dcdcec2521dea672e2604b7a5f1957
BLAKE2b-256 cb16057f729977ece968478fe30564ca5651c865abf3915cf4df43a523a1dc39

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page