Commit graph

94 commits

Author SHA1 Message Date
Collin Duncan
7118d8efde Dockerfile was incorrect, trying to fix this and expose a testing method on server as I am having issues with M1 processor with puppeteer as well 2023-02-13 09:13:39 +01:00
Collin Duncan
b865f8c248 Updating dockerfile to ensure that chromium is part of app image 2023-02-13 08:25:58 +01:00
Collin Duncan
54fba4821b Readme updates for anyone who will read it (future me) 2023-02-10 23:51:41 +01:00
Collin Duncan
60c2c137e2 More docker optimizations! (hopefully) 2023-02-10 23:41:49 +01:00
Collin Duncan
123c55b45f Making the DB debug log a bit more concise 2023-02-10 23:25:28 +01:00
Collin Duncan
73232031d4 Fixing tz issue. SQLite uses UTC only so converting local time to UTC before saving 2023-02-10 23:14:42 +01:00
Collin Duncan
2b8c85e908 Updating docker-compose to use same volume approach as server 2023-02-10 23:14:19 +01:00
Collin Duncan
229300d910 Changing reservation to return results in ascending order 2023-02-10 23:06:31 +01:00
Collin Duncan
12ec258466 Fixing mismatching database paths 2023-02-10 19:31:29 +01:00
Collin Duncan
407208c268 Updating path to sqlite db file 2023-02-10 19:08:41 +01:00
Collin Duncan
9419b0a904 Updating log to show formatted date 2023-02-10 19:08:20 +01:00
Collin Duncan
df97bfcd47 Changing fetchByDate query to use the date of the reservation 2023-02-10 15:17:58 +01:00
Collin Duncan
faca571cde Fixing fetchByDate query 2023-02-10 15:09:34 +01:00
Collin Duncan
8c923f0e08 Optimizing dockerfile 2023-02-10 15:09:27 +01:00
Collin Duncan
e9614d53cb Converting date function from MySQL to SQLite syntax 2023-02-10 14:54:47 +01:00
Collin Duncan
06bbcc0bc4 Removing logger from dayjs wrapper 2023-02-10 14:44:52 +01:00
Collin Duncan
87e651b38d Adding log to custom dayjs wrapper 2023-02-10 14:35:25 +01:00
Collin Duncan
fc35d12565 Adding database debug log for database queries 2023-02-10 14:33:04 +01:00
Collin Duncan
0d68d11af4 Fixing issue with scheduler sending single reservation 2023-02-10 14:14:19 +01:00
Collin Duncan
058af75553 Logging out date query parameter 2023-02-10 14:13:12 +01:00
Collin Duncan
f04e10f19b Adding some additional logic to support multiple reservations during one runner request and allowing fetching reservations by date. Also changed cron to only run once at 7.00 and fetch all available reservations at that date 2023-02-10 12:24:27 +01:00
Collin Duncan
15f98f5df6 Prettier fixes 2023-02-10 12:23:16 +01:00
Collin Duncan
552365eabb Fixing issue with router expecting a trailing slash for GET /cron 2023-02-08 13:50:12 +01:00
Collin Duncan
f320ef5c52 Adding status check for cron job 2023-02-08 13:33:42 +01:00
Collin Duncan
8a69d5ed57 Adding some routers to http server that handle more requests to /reservations and /cron 2023-01-30 12:39:05 +01:00
Collin Duncan
28f60bec09 Updating errors and logging in a lot of places. Changing some static methods of Reservation to instance methods 2023-01-30 12:38:42 +01:00
Collin Duncan
567a47e355 Changing $ to ? for SQL prepared statement 2023-01-30 08:59:06 +01:00
Collin Duncan
76a42255f4 Deleting reservation after successful run 2023-01-29 23:44:28 +01:00
Collin Duncan
8df792d7bf Removing unique constraint from username column 2023-01-29 19:19:08 +01:00
Collin Duncan
4607f3c25e Changing logger to show url and method of route 2023-01-29 17:56:19 +01:00
Collin Duncan
b20f0f7c9f Adding label for GHCR image 2023-01-29 14:46:59 +01:00
Collin Duncan
730a331bfc Slowing down cron for now to run every ten minutes 2023-01-29 14:35:42 +01:00
Collin Duncan
807ee0a8ca Adding some more error logging and handling as well as a circuit breaker to stop cron from continuously fucking up 2023-01-29 14:34:39 +01:00
Collin Duncan
546bf4b43e Changing dockerfile to give permissions of workdir to node user sooner 2023-01-28 11:31:55 +01:00
Collin Duncan
0dc5f6b30a Correcting docker build command 2023-01-28 11:28:46 +01:00
Collin Duncan
54cbda90a0 Adding workflow to create container image 2023-01-28 11:26:02 +01:00
Collin Duncan
49228d0454 Switching to use SQLite instead of MySQL 2023-01-28 10:51:46 +01:00
Collin Duncan
7de7d148c8 Updating SQL for saving reservation to DB 2023-01-21 16:01:38 +01:00
Collin Duncan
7324e76587 Updating reservation to use UUIDv4 as an id 2023-01-21 15:17:21 +01:00
Collin Duncan
c2a5051248 Changing cron to run at every minute in 7th hour 2023-01-21 15:14:58 +01:00
Collin Duncan
e3b7785310 Renaming unit test for http server to match src file name 2023-01-21 15:14:40 +01:00
Collin Duncan
8a9d39dc56 Updating logger to display timestamp 2023-01-20 15:37:15 +01:00
Collin Duncan
048160be63 Adding dayjs module to allow timezone handling by default and replaced node_module with this module 2023-01-20 15:31:04 +01:00
Collin Duncan
bc7f2a3d55 Updating Dockerfile to work properly with puppeteer 2023-01-20 12:33:50 +01:00
Collin Duncan
9cc3f3369f Prettiering 2023-01-20 09:52:28 +01:00
Collin Duncan
8e85a34966 Removing rollup and relying on tsc to make builds. Also updated Docker to have a working development version 2023-01-20 09:38:50 +01:00
Collin Duncan
1699b936ef Fixing SQL issues with table creation query 2023-01-20 09:36:37 +01:00
Collin Duncan
0f43259c3c Passing in MYSQL_HOST during MySQL connection configuration 2023-01-20 09:36:05 +01:00
Collin Duncan
f7a1a900fb Changing logger to work with AsyncLocalStorage to propagate logger to callee functions 2022-11-30 11:56:39 +01:00
Collin Duncan
a081616746 Fix issue with weird semicolon thing 2022-11-30 09:58:37 +01:00