Commit Graph

31 Commits

Author SHA1 Message Date
Aaron William Po
f4e6a307f2 feat: implement change password 2023-05-28 20:05:00 -04:00
Aaron William Po
27e72d3dcf Refactor: Organize api requests by type and remove toastContext 2023-05-22 12:18:31 -04:00
Aaron William Po
56af72a471 feat: add react-hot-toast for toast notifs 2023-05-19 23:27:49 -04:00
Aaron William Po
f21dc905fe feat: client app can now upload images for beer posts
Updated seed to incorporate cloudinary images, downgraded multer to recent LTS, update tsconfig to allow spread operator usage on FileList.
2023-05-07 21:05:21 -04:00
Aaron William Po
954892a5ca chore: update dependencies 2023-05-02 23:24:06 -04:00
Aaron William Po
99e3eba7d6 Feat: add vercel analytics 2023-04-30 13:25:23 -04:00
Aaron William Po
4aeafc0de8 Feat: Implement mapbox for geocoding and location data for brewery posts 2023-04-24 21:45:25 -04:00
Aaron William Po
2dfb080d0c Implement theming 2023-04-21 23:31:09 -04:00
Aaron William Po
7185734f3c Update readme, add docs to useMediaQuery, fix security issue with vm2 2023-04-12 21:41:19 -04:00
Aaron William Po
90f2cc2c0c Begin work on tab components for beer by id page 2023-04-11 22:18:29 -04:00
Aaron William Po
ea3e8a0023 Refactor beer comment section and incorporate image carousel
Beer comment section now uses a ternary expression for isLoading. Image carousel implemented in beer by id page.
2023-04-11 20:23:55 -04:00
Aaron William Po
915adb722a Implement react-intersection-observer to facilitate infinite scroll
Uses react-intersection-observer to load more comments when the last of the previously loaded comments is in the viewport.
2023-04-09 18:41:58 -04:00
Aaron William Po
cbc5671b0e Fix login glitch where user session wouldn't load properly into context 2023-04-08 02:46:42 -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
fe683282b2 Package updates
update types in /api/users/login to avoid tsc error
2023-04-04 22:07:04 -04:00
Aaron William Po
2efc506250 Add beer search feature
This commit adds the necessary components and hooks to implement a beer search feature on the website. It includes the following changes:

- Add a new BeerSearch API route that returns a list of beers matching a search query.
-  Implement a new hook useBeerPostSearch that utilizes SWR to fetch data from the API and parse it using a schema.
- Add a new page SearchPage that displays a search input field and a list of beer search results.
- Use lodash's debounce function to avoid making too many requests while the user is typing in the search input field.
2023-03-27 19:02:03 -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
11b3304c54 Update page auth HOF type definitions
Added vercel config, update packages
2023-02-25 19:17:49 -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
45cc10a009 Update next-connect, begin work on cloud img upload 2023-02-09 23:58:03 -05:00
Aaron William Po
dbd342fd3e Refactor codebase, format 2023-02-09 04:03:52 -05:00
Aaron William Po
087a1a4513 Implement authentication using Passport.js 2023-02-05 19:27:19 -05:00
Aaron William Po
5cf2087cd1 Refactored api services into sep files. Client fix
Fixed hydration errors in beers/[id] by implementing timeDistanceState
2023-01-31 23:16:43 -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
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
Aaron William Po
0bd57e1e08 Initial commit from Create Next App 2023-01-15 14:24:09 -05:00