Commit Graph

50 Commits

Author SHA1 Message Date
Aaron William Po
30f2147566 Format: update prettier configuration to use tailwind plugin 2023-12-01 18:18:43 -05:00
Aaron William Po
208fdc3177 Refactor: remove multer-storage-cloudinary 2023-12-01 02:11:46 -05:00
Aaron William Po
a435e011f8 Security fix: update password system for database seeding 2023-11-27 14:41:09 -05:00
Aaron William Po
468c220eaa Update next.js to recent version, style updates 2023-11-25 22:06:53 -05:00
Aaron William Po
cd621fdf21 fix and upgrade: bump next js to v14, remove public mapbox token 2023-11-24 00:07:00 -05:00
Aaron William Po
c3a991f938 feat: add reset password functionality 2023-11-23 21:06:50 -05:00
Aaron William Po
b939219c67 Fix: update dependencies, remove sparkpost-node
This commit removes the sparkpost-node and switches to using a raw api call using fetch. This commit also updates the dependency react-email.
2023-11-12 18:28:26 -05:00
Aaron William Po
3b626e2f95 Refactor: update types for brewery comments 2023-10-07 15:21:57 -04:00
Aaron William Po
6b8682e686 feat: begin work on beer type page and associated api routes 2023-09-17 20:27:33 -04:00
Aaron William Po
bfbf7c3cf3 Update next-connect middleware to return next() to fix error handling 2023-07-24 01:05:17 -07:00
Aaron William Po
77e358e2b5 Fix: downgrade typescript to fix stack overflow error in compiler 2023-06-10 22:19:45 -04:00
Aaron William Po
aa994f0067 Feat: add create brewery post, brewery image upload
Add address autocomplete, using MapBox
2023-06-10 22:09:51 -04:00
Aaron William Po
b644e7eeee Update: Implement delete account feature + package updates 2023-06-01 20:20:45 -04:00
Aaron William Po
2b026b7e5f format: format codebase to prettier schema 2023-05-28 20:12:41 -04:00
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
99c57d88c7 Update: beer post form now connected to a specific brewery.
This commit eliminates the brewery selector in the create beer post form, and reroutes the form page to /breweries/[id]/beers/create.

This commit also introduces the use of turbopack for `next dev`.
2023-05-12 20:21:52 -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
7922b6107b Update: remove shadow database url from schema
This is a quick solution to a migration issue involving the shadow db
2023-05-04 23:52:00 -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
c19cddceb7 Create location table for brewery post locations 2023-04-26 08:37:59 -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
788d77e745 Add page count to api route header, update docs 2023-04-16 23:20:05 -04:00
Aaron William Po
08422fe24e Restructure codebase to use src directory 2023-04-11 23:32:06 -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
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
796a5fce3f Styling changes and refactor
Switch google fonts to use Next.js font optimization, animate comment fade in, and refactor beer like handler and comment submit handler.
2023-04-04 20:51:29 -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
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
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