Commit graph

12 commits

Author SHA1 Message Date
e59fa30b78 Fix CI clippy error
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Variables can be used directly in the `format!` string.
2023-02-06 17:05:05 +01:00
9a6497720f ci: Add config to run CI checks
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-02-06 16:49:22 +01:00
7ad6f610d1 Use once_cell to keep the configuration
In order to keep the configuration globally available use
`once_cell`. Also check for a valid email address in the part which is
receiving the data from the api.
2023-02-06 10:00:45 +01:00
05e63acca5 Rename the project to remindrs
I started a discussion about the name in the newzealand subreddit. My
experience was not a good one. Although it seemed okay for the
majority to use any other language, using te reo Māori seemed to be
considered not okay, as not being part of that culture myself and I
respect that. Still this experience made me wonder and worries me as I
have seen such tendencies before and the outcome was never positive in
any way. This, from my point of view, only leads to separation between
cultures, which I intented to counteract. Nonetheless, it is how it is
and I do not want to provoke anyone with the name of a software
project.
2023-02-06 10:00:45 +01:00
169a4988b6 Embed and handle db migrations in the binary
In order to create and update the database schema the binary now
handles database migrations.
2023-02-05 08:58:09 +01:00
a4a1234f06 Reschedule the reminders when adding a new one
The thread handling the reminders is unparked and reschedules the
execution of sending out reminders.
2023-02-02 09:36:30 +01:00
7ded3ef430 Creation of a reminder via web api
Concurrently run the reminder service as well as an web endpoint to
create a new reminder. Note that a new reminder does not notify the
reminder service yet.

Cargo update dependencies
2023-02-02 06:53:34 +01:00
6b6f5aa48a Spawn an axum server
Concurrently spawn an axum server, which is not doing much yet, in
order to prepare for the creation, etc. of reminders.
2023-02-02 06:53:21 +01:00
0434505b2d Use standard paths for a possible config location
Check several possible standard paths when there is no path to the
configuration file given as argument. To find the configuration file
following paths are used. The local directory `./config.toml`, the
user global configuration directory
`$XDG_CONFIG_HOME/whakarite/config.toml` and the system wide
configuration directory `/etc/whakarite/config.toml`. Note that in the
later two cases the directory which contains the `config.toml`
receives its name from the `$CARGO_BIN_NAME` environment variable at
compile time.
2023-01-25 22:11:32 +01:00
21396daf83 Parse command-line-arguments
Use command-line-arguments to set the config file path and the log
level.
2023-01-24 01:20:42 +01:00
d37f31dd8a Add config file parsing
Use the `serde` and `toml` crates to handle config file parsing.
2023-01-24 01:19:20 +01:00
665015c296 Basic minimal prototype
Use a postgres database as storage and start with sone basic
functionality.
2023-01-24 00:38:50 +01:00