Commit Graph

  • dd49a1e687 Finish adding sqlc and fix some bugs sqlc vinchent 2024-08-01 16:49:59 +02:00
  • 459a4e5c7d 1. change db to sqlc, 2.use repo for db drivers vinchent 2024-08-01 10:04:50 +02:00
  • cec183b416 finish pgc impl vinchent 2024-07-31 22:15:37 +02:00
  • f20f256313 Use sqlc vinchent 2024-07-30 21:59:03 +02:00
  • 30c552cf6c change postgres to docker main vinchent 2024-07-30 20:03:44 +02:00
  • 3eab2a3c9f add todo vinchent 2024-07-29 22:09:06 +02:00
  • 5d225f0186 Use redis to store the sessions vinchent 2024-07-29 21:54:37 +02:00
  • 52c3679158 Use cmd flags vinchent 2024-07-29 14:20:51 +02:00
  • aca8605870 fix a make reservation error vinchent 2024-07-29 14:04:43 +02:00
  • 6631288843 add more tests vinchent 2024-07-29 13:52:10 +02:00
  • 99c2eec759 add some tests vinchent 2024-07-28 15:48:03 +02:00
  • 623291541a Fixing redirects vinchent 2024-07-28 15:23:12 +02:00
  • d7f7a2d8d9 Handling Calendar changes vinchent 2024-07-28 14:43:39 +02:00
  • 14828fb901 Reservation calendar 4 vinchent 2024-07-28 13:59:54 +02:00
  • 7894a05daf Reservation Calendar 3 vinchent 2024-07-27 22:39:23 +02:00
  • b97c6cba5c reservation calendar 2 vinchent 2024-07-26 13:40:56 +02:00
  • a7cf9fe4f0 Showing the reservation calendar vinchent 2024-07-26 10:18:27 +02:00
  • 5987fadb03 Deleting a reservation vinchent 2024-07-25 14:09:42 +02:00
  • fcd29cc082 Marking a resercation as processed vinchent 2024-07-25 13:51:31 +02:00
  • ca1e72c676 Editing a reservation vinchent 2024-07-25 13:29:57 +02:00
  • d4cf44bb22 Database functions for editing a reservation vinchent 2024-07-25 13:13:16 +02:00
  • 845f3a5836 Showing one reservation vinchent 2024-07-24 22:23:31 +02:00
  • dafd6f21c0 Listing new reservations vinchent 2024-07-24 14:20:30 +02:00
  • f93388a8e9 Listing all reservations vinchent 2024-07-22 22:14:48 +02:00
  • b34c217d98 create stub handlers for admin functionnality vinchent 2024-07-22 14:05:20 +02:00
  • ea796999d4 convert admin template into go template vinchent 2024-07-22 13:54:59 +02:00
  • 51e3c74950 add admin dropdown vinchent 2024-07-22 13:10:17 +02:00
  • dedab91898 Protecting our routes with auth middleware vinchent 2024-07-22 10:13:50 +02:00
  • 68d9110cd2 change flash to success vinchent 2024-07-22 10:04:08 +02:00
  • 96f81418ec Checking to see if a user is logged in, and logging a user our vinchent 2024-07-22 10:00:17 +02:00
  • a0853cf880 Writing auth middleware vinchent 2024-07-19 18:40:19 +02:00
  • a6dca00199 Creating handler to log in vinchent 2024-07-19 10:02:58 +02:00
  • d32fd432d2 Creating the auth and user database functions vinchent 2024-07-19 09:44:27 +02:00
  • 3e70a5727f Creating the auth handlers for the login screen vinchent 2024-07-19 09:23:45 +02:00
  • 447bfc4599 Create the login screen vinchent 2024-07-19 09:23:24 +02:00
  • c88974788f mock the mail server using a channel to read vinchent 2024-07-17 22:37:56 +02:00
  • b1d3095c89 Sending mails using Foundation templates vinchent 2024-07-17 22:34:03 +02:00
  • d40233b4ba Installing a mailer package and setting up a mail channel vinchent 2024-07-16 13:55:35 +02:00
  • bf61fb7c18 sending mails using standard lib vinchent 2024-07-16 13:35:10 +02:00
  • 998850b708 finish handler tests vinchent 2024-07-16 13:22:46 +02:00
  • 191b010b8e use RequestURI instead of chi.URLParam for testing purpose vinchent 2024-07-15 22:42:05 +02:00
  • 6853a1a483 add tests for postavailability and reservation summary vinchent 2024-07-15 22:38:29 +02:00
  • e8390cc51d Use url.Values for post params vinchent 2024-07-15 21:36:02 +02:00
  • 4debe0e14e finish availabilityjson test vinchent 2024-07-14 14:57:13 +02:00
  • 3f1dfeabc2 add docker compose for pg Muyao CHEN 2024-07-15 15:13:21 +02:00
  • 4ec8c5d9a1 Fix seed sqls Muyao CHEN 2024-07-15 15:11:06 +02:00
  • 904ee95d63 add tests for availabilityJson vinchent 2024-07-14 14:51:12 +02:00
  • 413bfc1685 user postData instead vinchent 2024-07-14 11:59:43 +02:00
  • d76070c21d fix bugs and add tests for PostMakeReservation handler vinchent 2024-07-14 11:49:42 +02:00
  • 262b48161d add comment for nosurf vinchent 2024-07-13 18:19:51 +02:00
  • 5d670c1dc5 fix availabilityJson post not working error: should pass CSRFToken into the function vinchent 2024-07-13 18:19:23 +02:00
  • 0f17b3405e Improving tests by handling multiple test cases vinchent 2024-07-13 16:47:23 +02:00
  • f67aed4942 Updating existing tests to handle sessions vinchent 2024-07-13 16:35:17 +02:00
  • 1c46c5a64b Creating a test database repository vinchent 2024-07-12 22:43:16 +02:00
  • 32250d92c4 Adding migrations for seeding rooms and restrictions vinchent 2024-07-11 23:47:14 +02:00
  • e2e03307b7 Extrating js module vinchent 2024-07-11 23:30:17 +02:00
  • 9775b67a2d Connecting the rooms page to make reservation page vinchent 2024-07-11 23:01:10 +02:00
  • fed901ce25 Providing feedback when searching by room, and connecting to the reservation page vinchent 2024-07-10 23:32:49 +02:00
  • 5eb9284b6f Searching for availability by Room vinchent 2024-07-10 23:09:45 +02:00
  • e0a29d21c3 Cleaning up the reservation summary page and improbing validation vinchent 2024-07-10 22:54:28 +02:00
  • 95cddfc950 Cleaning up our make reservation page and testing everything vinchent 2024-07-10 22:34:27 +02:00
  • 5a646a2b27 Connection search availability to the make reservation page vinchent 2024-07-10 22:08:23 +02:00
  • ab02f8e635 Connecting handlers to new database functions Muyao CHEN 2024-07-10 12:35:16 +02:00
  • 5f649d6d8e add todo Muyao CHEN 2024-07-10 11:30:04 +02:00
  • b9f974cd1f searching for availability for all rooms vinchent 2024-07-09 23:50:54 +02:00
  • 42a88034bf Searching for availability by room vinchent 2024-07-09 23:08:31 +02:00
  • 74e9fee942 Inserting Room Restrictions vinchent 2024-07-09 22:57:07 +02:00
  • bb7fcbccb7 fix wrong dbname vinchent 2024-07-08 23:16:13 +02:00
  • 2ae5d9a2c2 Setting up database functions: inserting a reservation vinchent 2024-07-08 23:04:17 +02:00
  • f5f89c2c03 add comment about orm packages vinchent 2024-07-07 22:50:46 +02:00
  • 18c82ba19f Cleaning up our code vinchent 2024-07-07 22:37:48 +02:00
  • 44385fbbce Setting up models vinchent 2024-07-07 22:32:32 +02:00
  • c4b41d305d Connecting to the datavase and adding the sql connection to our Repository vinchent 2024-07-06 22:55:25 +02:00
  • 07c84fc414 Creating a Driver package vinchent 2024-07-06 22:26:41 +02:00
  • 4986434e46 How to connect a Go application to a database vinchent 2024-07-06 22:03:02 +02:00
  • a497798d2f Designing the database using soda migration vinchent 2024-07-06 16:51:08 +02:00
  • 9fc6c05d38 Centralizing error handling to a helpers package Muyao CHEN 2024-07-03 10:03:25 +02:00
  • 0c0159734e Add run script Muyao CHEN 2024-07-02 21:51:07 +02:00
  • d87d8ed594 Writing tests for the Forms package Muyao CHEN 2024-07-02 21:48:00 +02:00
  • 875be55076 Writing tests for Render package Muyao CHEN 2024-07-02 13:57:45 +02:00
  • 70996c6f60 Writing tests for POST handlers Muyao CHEN 2024-07-02 13:16:27 +02:00
  • 21478b20ae Writing tests for main package and for GET handlers Muyao CHEN 2024-07-01 22:34:16 +02:00
  • dc7ece7d12 update go mod Muyao CHEN 2024-07-01 14:34:15 +02:00
  • d8d2abcde3 Finishing up our response to user, and adding alerts Muyao CHEN 2024-07-01 14:28:00 +02:00
  • 3ad57c754f Displaying a response to user after posting form data Muyao CHEN 2024-07-01 14:19:38 +02:00
  • 6826634a01 Server Side form validation 4: check email Muyao CHEN 2024-07-01 13:47:52 +02:00
  • 87dfd26268 Server Side form validation 3 Muyao CHEN 2024-07-01 13:37:03 +02:00
  • 8be6ba7119 Server side form validation 2 Muyao CHEN 2024-06-30 19:35:59 +02:00
  • 8394832428 Server-side form validation 1 Muyao CHEN 2024-06-30 17:08:47 +02:00
  • 7294254e13 Refactoring to use internal packages Muyao CHEN 2024-06-30 16:41:46 +02:00
  • eca62e2e7b Sending AJAX post and generalizing the custom function Muyao CHEN 2024-06-30 16:37:57 +02:00
  • e18849331c Sending & processing an AJAX request Muyao CHEN 2024-06-30 16:23:12 +02:00
  • 97b9898dfc rename reservation to availability Muyao CHEN 2024-06-30 10:51:29 +02:00
  • a8b56b50db Creating a handler that return JSON Muyao CHEN 2024-06-30 10:42:57 +02:00
  • 76bee566cd Creating handlers for forms & adding CSRF Protection Muyao CHEN 2024-06-30 10:31:15 +02:00
  • 592d5241d1 Add check-avalability js Muyao CHEN 2024-06-29 21:42:15 +02:00
  • 0ca6de59fd Converting pages to templates Muyao CHEN 2024-06-29 21:30:06 +02:00
  • b3eb96845a Add CSS file and fix datepicker display error Muyao CHEN 2024-06-29 17:50:33 +02:00
  • 310f61539c Using JS module on the book button Muyao CHEN 2024-06-29 17:01:26 +02:00
  • e5e5a93565 Custom alerts using Notie Muyao CHEN 2024-06-29 15:57:00 +02:00