Commit graph

9 commits

Author SHA1 Message Date
ditatompel
279b142e76
Build server tags in Makefile & air config #3
The build system is changed, now it build 2 different binary by using
go `-tags`. The local output binary also changed based on build tags.
2024-05-18 18:05:53 +07:00
ditatompel
598adac908
Adding repo description and update requirements 2024-05-17 17:40:22 +07:00
ditatompel
46bc3dc2e8
Using slog for logging level
The log level for the apps is using `log/slog` from Go standard library.
This commit change log format for fiber http logger to match with
the slog standard log format (date and time).

This commit also remove `APP_DEBUG` field from config struct.

TODO:
Use `slog` for default app output. Note that in this commit, the `slog`
output only implemented in `cron` "db migrate" and probe client.
2024-05-13 18:40:01 +07:00
ditatompel
d3113bf598
feat: MySQL db migration
Create database schema migration for this app that run when the `serve`
command is executed.
2024-05-12 04:19:40 +07:00
ditatompel
ec11fa0126
removing current page & next page in api response
This response was used for my HTMX "infinite scroll" data, which is not
used in this Svelte project.
2024-05-09 18:29:48 +07:00
ditatompel
899ffd0830
Adding systemd service and timer for prober 2024-05-06 21:45:33 +07:00
ditatompel
e7164ae0c1
Adding systemd example for server service 2024-05-06 19:59:43 +07:00
ditatompel
553aca1074
Adding GeoIP support 2024-05-05 02:20:54 +07:00
ditatompel
97ac67022f
Initial commit 2024-05-04 00:10:33 +07:00