Commit graph

20 commits

Author SHA1 Message Date
finga b9ce12c9f1 cargo: Cargo update and bump dependencies
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Cargo update and bump following dependencies:
- toml (0.6 -> 0.7)
- tower-http (0.3 -> 0.4)
2023-06-10 11:47:57 +02:00
finga 7ab98f9223 readme: Fix typo [CI SKIP] 2023-02-16 16:20:09 +01:00
finga fe0b24b823 readme: Add info about the db migration [CI SKIP]
Add information about how the database schema creation and updates are
handled.
2023-02-16 16:16:22 +01:00
finga 521f36f6c0 readme: Further improve the readme [CI SKIP]
Improve wording and readability.
2023-02-16 16:10:26 +01:00
finga 5627d96f2a readme: Add documentation to the readme [CI SKIP]
Explain and document the project and (hopefully) all necessary steps
to get it running.
2023-02-16 15:53:18 +01:00
finga 75a99490f2 deb: Improve the description and fix dependencies
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
To not have the same description add a more explaining
extended-description. Add `postgres` to the dependencies as this is
mandatory.
2023-02-16 14:48:16 +01:00
finga 3ecc096500 Build a Debian package with cargo-deb
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add everything to build a Debian package.
2023-02-07 14:23:35 +01:00
finga 869229c30e Run the db migrations not only in trace log level
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Fix a bug where the database migrations were only triggered when the
application was started in the `trace` logging level.
2023-02-07 14:19:22 +01:00
finga 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
finga 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
finga 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
finga 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
finga 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
finga 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
finga 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
finga 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
finga 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
finga 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
finga d37f31dd8a Add config file parsing
Use the `serde` and `toml` crates to handle config file parsing.
2023-01-24 01:19:20 +01:00
finga 665015c296 Basic minimal prototype
Use a postgres database as storage and start with sone basic
functionality.
2023-01-24 00:38:50 +01:00