Commit graph

22 commits

Author SHA1 Message Date
Vincent Ambo
8703b6102c feat(build): Add initial Nix-based build process
Adds a build script using ASDF's program-op to build an executable out
of the Gemma source code.

In addition a Nix derivation is provided that will both compile the
Elm source and place it in a folder, as well as create the executable.

Currently static file serving does not function as intended.
2017-12-29 16:42:10 +01:00
Vincent Ambo
5579ca7d6c feat(build): Configure ASDF program-op with entrypoint 2017-12-26 13:48:57 +01:00
Vincent Ambo
abe8419b03 docs(README): Update docs with a note about configuration 2017-12-26 11:15:27 +01:00
Vincent Ambo
e50e2acde0 docs: Add example configuration file 2017-12-26 11:13:52 +01:00
Vincent Ambo
4536e65471 feat(lisp): Implement configuration loading
Adds configuration loading from a file located at either
"/etc/gemma/config.lisp" or a path determined via the `GEMMA_CONFIG`
environment variable.

The configuration file can contain any number of deftask forms and a
single config form which determines the location at which Gemma stores
its data and also the port on which it should listen.
2017-12-26 11:13:03 +01:00
Vincent Ambo
db0e74fbd0 fix(lisp): Don't intern symbols for unregistered tasks 2017-12-24 18:05:49 +01:00
Vincent Ambo
02a34a14a0 feat(lisp): Make server port configurable 2017-12-21 14:00:32 +01:00
Vincent Ambo
bf9991026a refactor(lisp): Use imported symbols with local qualification
... except hunchentoot, I like using that fully-qualified because it's
a great word.
2017-12-21 13:55:14 +01:00
Vincent Ambo
8d1c9df434 fix(lisp): Automatically snapshot after task completions 2017-12-21 01:27:06 +01:00
Vincent Ambo
a8d46a358e feat(lisp): Implement persistent storage via cl-prevalence
Uses the cl-prevalence system to store tasks on disk. The storage
location is either relative to the working directory in which the
system is started or determined (with priority) by the environment
variable `GEMMA_DATA_DIR`.
2017-12-21 01:21:11 +01:00
Vincent Ambo
51ddb8fb53 docs: Add README with project explanation and background 2017-12-20 21:43:48 +01:00
Vincent Ambo
6679b893aa chore: Add code of conduct to project 2017-12-20 21:43:32 +01:00
Vincent Ambo
b0e6491600 chore: License under GPLv3 2017-12-20 21:43:05 +01:00
Vincent Ambo
d3ce3c1568 feat(elm): Automatically poll every 15 seconds
15 seconds is potentially a bit aggressive considering that
Gemma (currently) tracks expiry times in *days*.
2017-12-20 21:17:57 +01:00
Vincent Ambo
7dbeb83f85 feat(elm): Add real button to task cards 2017-12-20 21:04:15 +01:00
Vincent Ambo
ac623e4a7d feat(elm): Add nice little texts to display time remaining 2017-12-20 20:15:10 +01:00
Vincent Ambo
304f3ae3f1 feat(elm): Implement task completion handling
Adds a clickable area to the cards that will inform the backend of a
task being completed.

This of course still looks completely terrible because I don't really
know how frontend works.
2017-12-20 20:15:09 +01:00
Vincent Ambo
6cd75ac184 feat(elm): Add initial (broken) MDL layout for tasks
The idea is that every task should be shown as an MDL "card" and have
some sort of associated action (probably more than just a click, but
that I'll look at ...).

Tasks are coloured based on their current "urgency".
2017-12-20 20:15:09 +01:00
Vincent Ambo
cf0395e37c feat(lisp): Add Hunchentoot handler for task completion 2017-12-20 20:15:09 +01:00
Vincent Ambo
ce036d7d15 fix(lisp): Sort tasks in DESCENDING order 2017-12-20 20:15:09 +01:00
Vincent Ambo
26f365271e feat(elm): Add initial logic for Gemma's Elm frontend 2017-12-20 20:15:07 +01:00
Vincent Ambo
95e4971908 feat(lisp): Initial Gemma backend implementation
Implements the initial - very simple - backend for Gemma, a
task-management app for recurring tasks.
2017-12-20 20:15:04 +01:00