Commit Graph

21 Commits

Author SHA1 Message Date
Aaron William Po
56af72a471 feat: add react-hot-toast for toast notifs 2023-05-19 23:27:49 -04:00
Aaron William Po
5c91c6ab08 Refactor: move service logic out of api routes and into separate files 2023-05-14 19:30:08 -04:00
Aaron William Po
60e76089f3 Update README and env to mention Neon PG 2023-05-14 14:57:19 -04:00
Aaron William Po
50c3e1a82b Feat: Update beer recs to be loaded on the client side 2023-05-14 14:56:34 -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
3e1172e440 Refactor: switch data fetching from server side to client 2023-05-09 00:53:15 -04:00
Aaron William Po
90a7cf8d56 Format and style
Format SQL query in clean database, run npm run format
2023-05-08 00:04:01 -04:00
Aaron William Po
1971959ea4 Docs and format: Update documentation for hooks and format code
Docs: begin work on updating documentation for hooks
2023-05-04 23:52:00 -04:00
Aaron William Po
b7b239a4a1 Refactor: force style consistency for pagination queries
All pagination queries now use an underscore for page_num, and page_size
2023-05-02 23:45:32 -04:00
Aaron William Po
283b944c6b Refactor: change directory structure of hooks to organize by task 2023-05-02 21:54:49 -04:00
Aaron William Po
d20ab0fd1f Add user location marker to brewery map, Add beer sec. for brewery posts 2023-05-01 23:10:39 -04:00
Aaron William Po
b3b1d5b6d1 Feat: Implement infinite scrolling brewery comment section
Refactor beer comment schemas to work on brewery comments as well. Add robots.txt to block crawling for now.
2023-04-30 14:00:38 -04:00
Aaron William Po
c0d705f8cb Update seed to do bulk insert 2023-04-26 22:33:24 -04:00
Aaron William Po
c19cddceb7 Create location table for brewery post locations 2023-04-26 08:37:59 -04:00
Aaron William Po
58d30b605f Continue work on brewery page, implement like system 2023-04-23 17:26:21 -04:00
Aaron William Po
603588ca54 Update docs for useTheme hook, move meta viewport to _app 2023-04-21 23:42:14 -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
60fe48b7c1 Begin work on infinite beer scroll 2023-04-16 20:32:42 -04:00
Aaron William Po
07330beb9c Update navbar, implement useNavbar hook, style updates
- Created a custom hook that returns an object with pages depending on user auth. This is a refactor of the logic found in the navbar component.
- Updated styles for card components
- Fix font size issues for mobile.
- Update theming to include a new pastel theme.
2023-04-13 23:04:25 -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
08422fe24e Restructure codebase to use src directory 2023-04-11 23:32:06 -04:00