Commit Graph

24 Commits

Author SHA1 Message Date
Aaron William Po
80bed9b4dc Style updates
fix navbar to remain sticky, add fade in to layout component, update font to Space Grotesk
2023-04-08 02:11:13 -04:00
Aaron William Po
0d3785ad1a Add environment variable validation and parsing
Adds a validation schema for the application's environment variables using the Zod library. The parsed environment variables are then exported as constants that can be imported throughout the application, replacing the direct use of process.env.
2023-04-07 11:37:30 -04:00
Aaron William Po
7db7b8264f Switch database to cockroach db and remove height on comment card 2023-04-05 21:38:36 -04:00
Aaron William Po
584e3b349f Implement confirm user functionality
This commit adds the necessary functionality to confirm a user's account.

It includes the addition of a new column in the user table to track whether an account is confirmed or not, and the implementation of JWT for confirmation tokens.

This commit integrates the SparkPost API as well as React Email to send dynamic emails for whatever purpose.

Upon user registration, a confirmation email will be sent to the user.
2023-03-13 22:35:57 -04:00
Aaron William Po
472ead9abd Refactoring beer by id page, add delete comment
Refactored the comments ui into various new components, added the delete beer comment by id feature.
2023-03-03 21:28:44 -05:00
Aaron William Po
11b3304c54 Update page auth HOF type definitions
Added vercel config, update packages
2023-02-25 19:17:49 -05:00
Aaron William Po
0b006090c5 Update package.json to add vercel-build script 2023-02-13 18:30:21 -05:00
Aaron William Po
ea516e91b5 Rename "user" column in beerPostLikes, add ERD gen 2023-02-13 17:15:10 -05:00
Aaron William Po
7240cb0792 Fix beer likes and db client 2023-02-13 13:08:05 -05:00
Aaron William Po
80261a713b Add comments pagination, login and register pages 2023-02-13 10:56:09 -05:00
Aaron William Po
912008e68d More work on beer image upload
patFix schema so beer image and brewery image have createdBy column. Rename 'url' to 'path' in schema, add 'caption' column.
2023-02-11 21:42:22 -05:00
Aaron William Po
dbd342fd3e Refactor codebase, format 2023-02-09 04:03:52 -05:00
Aaron William Po
c2eb4d1371 Add github actions, refactor seed and beer p likes 2023-02-09 02:23:18 -05:00
Aaron William Po
f6880deeb6 add user context and likes 2023-02-08 07:43:59 -05:00
Aaron William Po
20000cc4af update seed 2023-02-07 20:31:04 -05:00
Aaron William Po
087a1a4513 Implement authentication using Passport.js 2023-02-05 19:27:19 -05:00
Aaron William Po
0b96c8f1f5 Did more work to beer post page, seed
Worked on comments and beer recs features. Fine tuning database seed amounts.
2023-01-29 21:53:05 -05:00
Aaron William Po
fe277d5964 Refactor api requests and components out of pages 2023-01-28 21:05:20 -05:00
Aaron William Po
a182f55280 Format migrations 2023-01-27 04:47:52 -05:00
Aaron William Po
d0bced1376 Add create beer, beer post page 2023-01-24 21:03:31 -05:00
Aaron William Po
972846f5a8 scaffold create/edit beer form, scaffold beer page 2023-01-23 20:13:25 -05:00
Aaron William Po
f08731de17 Edit seed db function 2023-01-22 23:49:58 -05:00
Aaron William Po
0065525f5c Add beer post, brewery post GET service and page
Add prettier, eslint config
2023-01-22 20:56:33 -05:00
Aaron William Po
a434e1bb98 Add necessary packages, start prisma schema 2023-01-18 20:51:41 -05:00