Commit graph

  • 1f5824ac49
    Spliting out server code, adding unit test for server Collin Duncan 2022-11-27 15:59:20 +01:00
  • 90a1f00f3d
    Moving around some files so that it is a bit more clear and using ts-jest for jest Collin Duncan 2022-11-21 19:07:43 +01:00
  • 4f3c0e9938
    Changing error message on route not found Collin Duncan 2022-11-21 18:53:42 +01:00
  • 5cdbc3ebb0
    Adding some docker setup for local testing Collin Duncan 2022-11-21 18:50:59 +01:00
  • e039c3d5a8
    Removing redundant file Collin Duncan 2022-11-07 12:41:32 +01:00
  • 2319cdce18
    Updating node version, improving build process and adding required modules to dev dependencies Collin Duncan 2022-11-07 11:44:57 +01:00
  • 8f69d13a26
    Moving server file Collin Duncan 2022-11-04 14:59:41 +01:00
  • 819013fb2f
    Removing babel and upgrading rollup to v3 Collin Duncan 2022-11-04 14:59:23 +01:00
  • f0061827c9
    Updating snapshot and running prettier on tests Collin Duncan 2022-11-04 14:16:11 +01:00
  • 317c0cbdb0
    Updating some outdated deps Collin Duncan 2022-10-23 12:02:54 +02:00
  • c7d9bef9f0
    Fixing some errors due to changing reservation requests Collin Duncan 2022-10-23 12:02:44 +02:00
  • 3247ca5315
    Lots of changes to project structure First integration of requester and scheduler workers Added password hashing functions Adding initial database integration Collin Duncan 2022-10-23 11:55:47 +02:00
  • 5b1416d789
    Adding a simple diagram so I don't forget what I'm doing later Collin Duncan 2022-10-23 11:54:59 +02:00
  • b8ff324d05
    Adding some new packages for password/database features; updating old packages Collin Duncan 2022-10-23 11:54:35 +02:00
  • 38fd802087
    Removing some terraform artifacts Collin Duncan 2022-10-23 11:51:26 +02:00
  • 236d696025
    Bump minimist from 1.2.5 to 1.2.6 Collin Duncan 2022-03-29 20:42:29 +00:00
  • 98bd540130
    Updating runner to change to next month if needed; Added some more logging; Cleaning up some scripts Collin Duncan 2022-03-29 22:41:44 +02:00
  • 767a5930a6
    some naming/organization changes Collin Duncan 2022-02-11 13:20:15 +01:00
  • 2b9fa53c5f
    removing traces of aws and cleaning up workers/tests Collin Duncan 2022-02-10 17:27:35 +01:00
  • 2c953cbc57
    👋 tf Collin Duncan 2022-02-10 16:48:25 +01:00
  • 06cf54964d
    Fixing issues with rollup and running locally Collin Duncan 2022-02-01 16:48:50 +01:00
  • 0329b60a5d
    Working slowly on adding state machine to perform reservations Collin Duncan 2021-11-28 22:34:51 +01:00
  • 6b204a30f2
    Preventing lambda retries for now Collin Duncan 2021-11-28 19:54:26 +01:00
  • 7847bc7d77
    Removed SQS and updated lambda with working config and deployed Collin Duncan 2021-11-28 19:40:41 +01:00
  • 0cf9aac94c
    Adding logger; moving lambdas to separate dirs and including rollup to create distributables; finished up some unit tests Collin Duncan 2021-11-28 19:40:16 +01:00
  • 19798aad3d
    Adding tf version Collin Duncan 2021-11-28 19:39:20 +01:00
  • 6aa46fbaa9
    Updated reservationScheduler to properly input/output correct data format Collin Duncan 2021-11-28 13:06:52 +01:00
  • 4f76823102
    Adding scheduling functions to prepare to schedule reservation requests in the future Collin Duncan 2021-11-27 13:11:09 +01:00
  • 333bee8c74
    Initial terraform config Collin Duncan 2021-11-24 15:39:28 +01:00
  • 7246ecabf2
    Updating request to focus on single request, started working on reservationScheduler Collin Duncan 2021-11-24 15:38:58 +01:00
  • 743cc08887
    Adding some pretty stuff Reorganized code and added some unit tests for reservations and requests Collin Duncan 2021-11-24 00:00:22 +01:00
  • eec0edb76b
    ESLint and prettier configs added Collin Duncan 2021-11-17 14:18:15 +01:00
  • ff67e738f5
    Removed comma from package.json Collin Duncan 2021-11-17 14:17:54 +01:00
  • 5055d5cd91
    Small bug fix in reservation loop and prettier/eslint Collin Duncan 2021-11-17 14:17:25 +01:00
  • 8a83417b7d
    Updating README and local execution Collin Duncan 2021-11-15 12:32:49 +01:00
  • ba0afacf91
    Adding .nvmrc Collin Duncan 2021-11-15 12:32:13 +01:00
  • 905cd4e194
    Initial commit with first working version Collin Duncan 2021-11-15 11:28:39 +01:00
  • 09907a4316
    Bump sqlite3 from 5.1.4 to 5.1.5 dependabot[bot] 2023-03-13 21:51:13 +00:00
  • 9ccd8bf110 Changing how sessions are started and handled to fix issues with multiple reservation requests Collin Duncan 2023-02-20 11:08:56 +01:00
  • ba3ac353c4 Reoptimization of docker (perhaps) Collin Duncan 2023-02-13 15:49:48 +01:00
  • 8a97184517 Changing runner test to use headless version of puppeteer Collin Duncan 2023-02-13 15:18:15 +01:00
  • 08526f388e Updating reservation to round day diff down to allow for reservations up to 7.99 days (e.g. performing a reservation at 21.00 at 07.00 the week before) Collin Duncan 2023-02-13 11:14:29 +01:00
  • 383a9e8f83 Removing some default args I had recently changed due to an error when launching chromium Collin Duncan 2023-02-13 10:12:50 +01:00
  • 808a50a6c0 Reverting optimizations to Dockerfile Collin Duncan 2023-02-13 10:02:33 +01:00
  • 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 Collin Duncan 2023-02-13 09:13:39 +01:00
  • b865f8c248 Updating dockerfile to ensure that chromium is part of app image Collin Duncan 2023-02-13 08:25:58 +01:00
  • 54fba4821b Readme updates for anyone who will read it (future me) Collin Duncan 2023-02-10 23:51:41 +01:00
  • 60c2c137e2 More docker optimizations! (hopefully) Collin Duncan 2023-02-10 23:41:49 +01:00
  • 123c55b45f Making the DB debug log a bit more concise Collin Duncan 2023-02-10 23:25:28 +01:00
  • 73232031d4 Fixing tz issue. SQLite uses UTC only so converting local time to UTC before saving Collin Duncan 2023-02-10 23:14:42 +01:00
  • 2b8c85e908 Updating docker-compose to use same volume approach as server Collin Duncan 2023-02-10 23:14:19 +01:00
  • 229300d910 Changing reservation to return results in ascending order Collin Duncan 2023-02-10 23:06:31 +01:00
  • 12ec258466 Fixing mismatching database paths Collin Duncan 2023-02-10 19:31:29 +01:00
  • 407208c268 Updating path to sqlite db file Collin Duncan 2023-02-10 19:08:41 +01:00
  • 9419b0a904 Updating log to show formatted date Collin Duncan 2023-02-10 19:08:20 +01:00
  • df97bfcd47 Changing fetchByDate query to use the date of the reservation Collin Duncan 2023-02-10 15:17:58 +01:00
  • faca571cde Fixing fetchByDate query Collin Duncan 2023-02-10 15:09:34 +01:00
  • 8c923f0e08 Optimizing dockerfile Collin Duncan 2023-02-10 15:09:27 +01:00
  • e9614d53cb Converting date function from MySQL to SQLite syntax Collin Duncan 2023-02-10 14:54:47 +01:00
  • 06bbcc0bc4 Removing logger from dayjs wrapper Collin Duncan 2023-02-10 14:44:52 +01:00
  • 87e651b38d Adding log to custom dayjs wrapper Collin Duncan 2023-02-10 14:35:25 +01:00
  • fc35d12565 Adding database debug log for database queries Collin Duncan 2023-02-10 14:33:04 +01:00
  • 0d68d11af4 Fixing issue with scheduler sending single reservation Collin Duncan 2023-02-10 14:14:19 +01:00
  • 058af75553 Logging out date query parameter Collin Duncan 2023-02-10 14:13:12 +01:00
  • 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 Collin Duncan 2023-02-10 12:24:27 +01:00
  • 15f98f5df6 Prettier fixes Collin Duncan 2023-02-10 12:22:36 +01:00
  • 552365eabb Fixing issue with router expecting a trailing slash for GET /cron Collin Duncan 2023-02-08 13:50:12 +01:00
  • f320ef5c52 Adding status check for cron job Collin Duncan 2023-02-08 13:33:42 +01:00
  • 8a69d5ed57 Adding some routers to http server that handle more requests to /reservations and /cron Collin Duncan 2023-01-30 12:39:05 +01:00
  • 28f60bec09 Updating errors and logging in a lot of places. Changing some static methods of Reservation to instance methods Collin Duncan 2023-01-30 12:38:42 +01:00
  • 567a47e355 Changing $ to ? for SQL prepared statement Collin Duncan 2023-01-30 08:59:06 +01:00
  • 76a42255f4 Deleting reservation after successful run Collin Duncan 2023-01-29 23:44:28 +01:00
  • 8df792d7bf Removing unique constraint from username column Collin Duncan 2023-01-29 19:19:08 +01:00
  • 4607f3c25e Changing logger to show url and method of route Collin Duncan 2023-01-29 17:56:19 +01:00
  • b20f0f7c9f Adding label for GHCR image Collin Duncan 2023-01-29 14:46:59 +01:00
  • 730a331bfc Slowing down cron for now to run every ten minutes Collin Duncan 2023-01-29 14:35:42 +01:00
  • 807ee0a8ca Adding some more error logging and handling as well as a circuit breaker to stop cron from continuously fucking up Collin Duncan 2023-01-29 14:34:39 +01:00
  • 546bf4b43e Changing dockerfile to give permissions of workdir to node user sooner Collin Duncan 2023-01-28 11:31:55 +01:00
  • 0dc5f6b30a Correcting docker build command Collin Duncan 2023-01-28 11:28:46 +01:00
  • 54cbda90a0 Adding workflow to create container image Collin Duncan 2023-01-28 11:26:02 +01:00
  • 49228d0454 Switching to use SQLite instead of MySQL Collin Duncan 2023-01-28 10:51:46 +01:00
  • 7de7d148c8 Updating SQL for saving reservation to DB Collin Duncan 2023-01-21 16:01:38 +01:00
  • 7324e76587 Updating reservation to use UUIDv4 as an id Collin Duncan 2023-01-21 15:17:21 +01:00
  • c2a5051248 Changing cron to run at every minute in 7th hour Collin Duncan 2023-01-21 15:14:58 +01:00
  • e3b7785310 Renaming unit test for http server to match src file name Collin Duncan 2023-01-21 15:14:40 +01:00
  • 8a9d39dc56 Updating logger to display timestamp Collin Duncan 2023-01-20 15:37:15 +01:00
  • 048160be63 Adding dayjs module to allow timezone handling by default and replaced node_module with this module Collin Duncan 2023-01-20 15:31:04 +01:00
  • bc7f2a3d55 Updating Dockerfile to work properly with puppeteer Collin Duncan 2023-01-20 12:33:50 +01:00
  • 9cc3f3369f Prettiering Collin Duncan 2023-01-20 09:52:28 +01:00
  • 8e85a34966 Removing rollup and relying on tsc to make builds. Also updated Docker to have a working development version Collin Duncan 2023-01-20 09:38:50 +01:00
  • 1699b936ef Fixing SQL issues with table creation query Collin Duncan 2023-01-20 09:36:37 +01:00
  • 0f43259c3c Passing in MYSQL_HOST during MySQL connection configuration Collin Duncan 2023-01-20 09:35:10 +01:00
  • 329a824a04
    Bump json5 from 2.2.1 to 2.2.3 dependabot[bot] 2023-01-09 11:46:42 +00:00
  • f7a1a900fb Changing logger to work with AsyncLocalStorage to propagate logger to callee functions Collin Duncan 2022-11-30 11:56:39 +01:00
  • a081616746 Fix issue with weird semicolon thing Collin Duncan 2022-11-30 09:58:37 +01:00
  • f607679bab Adding cron job for running reservations; changing how the runner worked to only instantiate one runner and reuse it; lots of tests! Collin Duncan 2022-11-29 22:51:28 +01:00
  • 5c762aa3ad Removing the weird semicolon-infront-of-typed-variable thing! Collin Duncan 2022-11-29 22:50:49 +01:00
  • 5cef34d0ef Splitting tests into unit and integration tests Collin Duncan 2022-11-27 16:14:56 +01:00
  • b7007be031 Obfuscating password from logs Collin Duncan 2022-11-27 16:09:30 +01:00
  • d749f289a7 Consolidating usage of test/it in tests Collin Duncan 2022-11-27 16:09:21 +01:00