Categorygithub.com/klingtnet/notes
modulepackage
0.1.0
Repository: https://github.com/klingtnet/notes.git
Documentation: pkg.go.dev

# README

notes - a journal server

notes is a web service equivalent to a notebook, you can store ideas and look for them with a full text search. The search makes it even better than a notebook. Notes are stored in a encrypted SQLite database using SQLCipher. It supports github flavored markdown and everything is contained in a single binary (execpt the database file).

I am happy to get pull requests and here a couple of improvement ideas:

  • mark tasks as finished by clicking on a checkbox
  • only show open tasks
  • add pagination or date filtering

Installation

For Linux users with a working Go setup the easiest way is to install the server and its systemd user service using by running make install. You can also grab a prebuilt binary from the releases page and copy it into your $PATH. A database file is created on the first start at $XDG_CONFIG_HOME/notes/notes.db or wherever you set the argument of --database-path to. It is important to set a proper database password on the first run using DATABASE_PASSPHRASE environment variable (you can use the flag as well but this comes with some security downsides.) At the moment there is no option to change the password but you should be able to achieve that in a db shell session (scripts/dbshell shows how to start such a session).

# Constants

AppName is the name of the application.

# Variables

Embeds stores the embedded data.
Version is the build version set by make.

# Structs

Embedded implements github.com/klingtnet/embed/Embed .
Note contains information you want to remember in markdown as well as HTML format and addiitonal metadata.
TemplateData contains all information required to render a template.
TemplateErrorContent contains data required by the error template.
TemplateFooterData contains data required by the footer template.
TemplateHeaderData contains data required by the header template.
TemplateIndexContent contains data required by the index template.
TemplateMainData contains data required by the main template.