Commit Graph

52 Commits

Author SHA1 Message Date
07c84fc414 Creating a Driver package 2024-07-06 22:26:41 +02:00
4986434e46 How to connect a Go application to a database 2024-07-06 22:03:02 +02:00
a497798d2f Designing the database using soda migration 2024-07-06 16:51:08 +02:00
Muyao CHEN
9fc6c05d38 Centralizing error handling to a helpers package 2024-07-03 10:03:25 +02:00
Muyao CHEN
0c0159734e Add run script 2024-07-02 21:52:22 +02:00
Muyao CHEN
d87d8ed594 Writing tests for the Forms package 2024-07-02 21:48:00 +02:00
Muyao CHEN
875be55076 Writing tests for Render package 2024-07-02 13:57:45 +02:00
Muyao CHEN
70996c6f60 Writing tests for POST handlers 2024-07-02 13:16:27 +02:00
Muyao CHEN
21478b20ae Writing tests for main package and for GET handlers 2024-07-01 22:34:16 +02:00
Muyao CHEN
dc7ece7d12 update go mod 2024-07-01 14:34:15 +02:00
Muyao CHEN
d8d2abcde3 Finishing up our response to user, and adding alerts 2024-07-01 14:28:00 +02:00
Muyao CHEN
3ad57c754f Displaying a response to user after posting form data 2024-07-01 14:19:38 +02:00
Muyao CHEN
6826634a01 Server Side form validation 4: check email 2024-07-01 13:47:52 +02:00
Muyao CHEN
87dfd26268 Server Side form validation 3 2024-07-01 13:37:03 +02:00
Muyao CHEN
8be6ba7119 Server side form validation 2 2024-06-30 19:35:59 +02:00
Muyao CHEN
8394832428 Server-side form validation 1 2024-06-30 17:08:47 +02:00
Muyao CHEN
7294254e13 Refactoring to use internal packages 2024-06-30 16:41:46 +02:00
Muyao CHEN
eca62e2e7b Sending AJAX post and generalizing the custom function 2024-06-30 16:37:57 +02:00
Muyao CHEN
e18849331c Sending & processing an AJAX request 2024-06-30 16:23:12 +02:00
Muyao CHEN
97b9898dfc rename reservation to availability 2024-06-30 10:51:29 +02:00
Muyao CHEN
a8b56b50db Creating a handler that return JSON 2024-06-30 10:42:57 +02:00
Muyao CHEN
76bee566cd Creating handlers for forms & adding CSRF Protection 2024-06-30 10:31:15 +02:00
Muyao CHEN
592d5241d1 Add check-avalability js 2024-06-29 21:42:15 +02:00
Muyao CHEN
0ca6de59fd Converting pages to templates 2024-06-29 21:30:06 +02:00
Muyao CHEN
b3eb96845a Add CSS file and fix datepicker display error 2024-06-29 17:50:33 +02:00
Muyao CHEN
310f61539c Using JS module on the book button 2024-06-29 17:01:26 +02:00
Muyao CHEN
e5e5a93565 Custom alerts using Notie 2024-06-29 15:57:00 +02:00
Muyao CHEN
bd094d019e Making a better date picker 2024-06-29 15:38:55 +02:00
Muyao CHEN
52d4d40140 javascript init 2024-06-29 15:21:09 +02:00
Muyao CHEN
d7f978a884 Creating the reservation page 2024-06-29 15:02:15 +02:00
Muyao CHEN
bfe66073f1 Improving our form 2024-06-29 14:54:21 +02:00
Muyao CHEN
2351db7178 Creating a page for each room && Adding a form to search for availability 2024-06-29 11:53:45 +02:00
Muyao CHEN
2e9391d502 Creating a landing page 2024-06-28 23:20:01 +02:00
Muyao CHEN
6e6b003e05 Enabling static files 2024-06-28 22:30:19 +02:00
Muyao CHEN
c15e4da93c Experimenting with sessions 2024-06-28 15:41:25 +02:00
Muyao CHEN
8ec31267c6 Installing and setting up a sessions package 2024-06-28 15:30:00 +02:00
Muyao CHEN
9911144aff Developping our own middleware 2024-06-28 13:33:43 +02:00
Muyao CHEN
e1b990dfd3 Using chi for routing 2024-06-28 13:14:05 +02:00
Muyao CHEN
daef31f070 Using pat for routing 2024-06-28 12:59:47 +02:00
Muyao CHEN
b9c8c2592d Sharing data with templates: correct import cycle 2024-06-28 10:48:52 +02:00
Muyao CHEN
668e88e578 Sharing data with templates: cycle import error 2024-06-28 10:40:47 +02:00
Muyao CHEN
1dd22ba8db Optimizing template cache by using an application config *** 2024-06-27 14:03:43 +02:00
Muyao CHEN
2391f5a160 Building a more complex template cache 2024-06-27 13:19:38 +02:00
Muyao CHEN
3eb7a210b2 Building a simple template cache 2024-06-26 22:50:04 +02:00
Muyao CHEN
10d4172f3c Working with layouts 2024-06-26 22:25:04 +02:00
Muyao CHEN
144e700b15 Refactoring code to use packages 2024-06-26 22:06:32 +02:00
Muyao CHEN
b207b9a293 Reorg code, add basic styling to pages 2024-06-26 21:56:58 +02:00
Muyao CHEN
92dc9975c7 change the main.go place 2024-06-26 18:12:51 +02:00
Muyao CHEN
ab6184e675 Serving HTML Templates 2024-06-26 18:10:56 +02:00
Muyao CHEN
4eefdfe47c Error checking 2024-06-26 17:49:08 +02:00