Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy prod: merge dev into main #62

Merged
merged 267 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
267 commits
Select commit Hold shift + click to select a range
7f6911e
Move <Navbar> rendering in front of <main> for mobile view, give Navb…
voctory Jul 2, 2024
84d73c4
add stats table component
isa-leroux448 Jul 2, 2024
8de449c
add title and data props to stats table
isa-leroux448 Jul 2, 2024
87ba060
removed piechart import from index
AllanT102 Jul 2, 2024
188f7ae
removed dummy data
AllanT102 Jul 2, 2024
b7a1ef1
Merge pull request #13 from ubc-biztech/registration-table
AllanT102 Jul 2, 2024
bbcb15f
base page completed
AllanT102 Jul 2, 2024
1cdbb10
used mock data to pass in as the events and are rendered using the ma…
m20arcusk Jul 3, 2024
2fc46be
updated mobile view for admin events, some minor issues with the navb…
m20arcusk Jul 3, 2024
1ad93f5
Login UI
bennypc Jul 3, 2024
2f55c9e
put helper in utils
AllanT102 Jul 3, 2024
9a80a96
added poppin font
AllanT102 Jul 3, 2024
3d659b6
removed render from main
AllanT102 Jul 3, 2024
7139e10
Merge branch 'pie-chart' into bar-chart
kevinxiao27 Jul 4, 2024
c4eb353
amplify gen 2 cognito implementation
bennypc Jul 4, 2024
11179c4
Feat: barchart draft (horizontal gridlines dont show since data is no…
kevinxiao27 Jul 4, 2024
f4a8f06
build error
bennypc Jul 4, 2024
2a2a3c2
add nested object compatibility
isa-leroux448 Jul 4, 2024
6bac037
Merge branch 'dev' of https://github.com/ubc-biztech/bt-web-v2 into s…
isa-leroux448 Jul 4, 2024
bb8ecd9
Merge remote-tracking branch 'origin/dev' into admin-events
m20arcusk Jul 5, 2024
30f39f2
Style: Barchart axis colours
kevinxiao27 Jul 5, 2024
f6c4f94
Merge branch 'dev' into bar-chart
kevinxiao27 Jul 5, 2024
1abae41
merge conflicts
AllanT102 Jul 6, 2024
5b8e67e
Merge pull request #15 from ubc-biztech/pie-chart
AllanT102 Jul 6, 2024
de63b5f
Merge branch 'dev' of https://github.com/ubc-biztech/bt-web-v2 into s…
AllanT102 Jul 6, 2024
748a5d3
Merge pull request #17 from ubc-biztech/stats-base-page
AllanT102 Jul 6, 2024
2882f88
Merge branch 'dev' into bar-chart
kevinxiao27 Jul 6, 2024
e1d2fa0
Merge pull request #19 from ubc-biztech/bar-chart
kevinxiao27 Jul 6, 2024
d1c3a1a
Fix: test on supported versions of node for next.js in github ci
kevinxiao27 Jul 7, 2024
f8ecadd
Fix: test on supported versions of node for next.js in github ci
kevinxiao27 Jul 7, 2024
634664a
Merge branch 'github-ci-fixes' of https://github.com/ubc-biztech/bt-w…
kevinxiao27 Jul 7, 2024
a6ec939
Update node.js.yml
kevinxiao27 Jul 7, 2024
1a74aa4
amplify outputs
bennypc Jul 9, 2024
9f05197
login error edit
bennypc Jul 9, 2024
1d31aa6
achieved the popup modal functions with the delete menus on both mobi…
m20arcusk Jul 9, 2024
5376d0d
fixed functionality and added comments to the code on both mobile and…
m20arcusk Jul 10, 2024
5a837ca
fixed small bug with clickoff functionality and rounded corners of popup
m20arcusk Jul 10, 2024
ce352c8
updated route to be admin/home
m20arcusk Jul 11, 2024
e5017ca
Added legacy support for qr-reader with override and some typing + cl…
kevinxiao27 Jul 14, 2024
ff19a8a
Clean up types and destructure props, WIP converting to tailwind
kevinxiao27 Jul 14, 2024
bd85fe1
Feat: first working mvp of qrscanner
kevinxiao27 Jul 15, 2024
6dfa2bb
responsiveness + comment for logging
bennypc Jul 17, 2024
bcbc5d0
Feat: complete QrScanner components... maybe some refactoring needed
kevinxiao27 Jul 17, 2024
2e492a7
Feat: refactor + comments
kevinxiao27 Jul 17, 2024
8707d1a
Merge pull request #20 from ubc-biztech/github-ci-fixes
AllanT102 Jul 18, 2024
bd17125
Create pull_request_template.md
AllanT102 Jul 18, 2024
6e6579a
Feat: refactor
kevinxiao27 Jul 18, 2024
f14298a
Merge branch 'github-ci-fixes' into QR-scanner
kevinxiao27 Jul 18, 2024
7261c2d
Feat: mobile styling fixes
kevinxiao27 Jul 19, 2024
988f306
clean index.tsx
kevinxiao27 Jul 19, 2024
3be4a06
updated component names to be camel cased
m20arcusk Jul 21, 2024
09795f2
init layout and styling
isa-leroux448 Jul 21, 2024
5e3ddf1
add tailwind styling and refactor
isa-leroux448 Jul 21, 2024
0d2055b
add responsiveness
isa-leroux448 Jul 21, 2024
bfbe843
add navbar profile link
isa-leroux448 Jul 21, 2024
03f6e79
change restriction to label
isa-leroux448 Jul 25, 2024
576b3b2
Feat: put qr scanner in registrationtable
kevinxiao27 Jul 25, 2024
68406e0
styling changes to match mobile and desktop registration tables
kevinxiao27 Jul 25, 2024
8329dc4
fix: add required fields OOPS lol mb
kevinxiao27 Jul 25, 2024
74cd4b0
Feat: changed no_camera icon to svg and background image rendering (m…
kevinxiao27 Jul 25, 2024
816ca67
fix: made mobile responsive instead of hardcoding approximate vw
kevinxiao27 Jul 25, 2024
6a3bfdd
Improved error handling
bennypc Jul 26, 2024
cf6e36f
Fix: small fixes to victor's comments
kevinxiao27 Jul 29, 2024
7602dc1
Feat: refactor with breakpoints
kevinxiao27 Jul 29, 2024
518d2ab
Initialize create event form on /admin/event/new
voctory Jul 29, 2024
0fde63a
Add missing shadcn components for create event
voctory Jul 29, 2024
16bbc2c
replace bizbot svg with png
isa-leroux448 Jul 30, 2024
7e2503d
Fix TypeScript compilation of EventForm.tsx
voctory Jul 30, 2024
f30aeae
Remove edit.tsx, failing compile
voctory Jul 30, 2024
f8c82dc
Merge remote-tracking branch 'origin/dev' into 3-implement-login-form
bennypc Jul 30, 2024
e1c12ee
Merge pull request #18 from ubc-biztech/3-implement-login-form
bennypc Jul 30, 2024
dc74c30
missing comma lmao
bennypc Jul 30, 2024
e04139c
achieved front-end view for pop up. just need to plan how the data wi…
m20arcusk Jul 30, 2024
46284a0
Refactor useEffect for easier readability
kevinxiao27 Aug 1, 2024
b3c59f5
Feat: set up middleware
kevinxiao27 Aug 1, 2024
7b8c02c
remove redundant comments
kevinxiao27 Aug 1, 2024
da1e185
Feat: set up amplify for next.js
kevinxiao27 Aug 2, 2024
0eaa3da
Remove commented code
kevinxiao27 Aug 2, 2024
8b3ce41
frontend visuals achieved, just need to refactor the method the data …
m20arcusk Aug 2, 2024
afd8e3d
init
AllanT102 Aug 2, 2024
ddb7ca1
Merge pull request #14 from ubc-biztech/stats-table
AllanT102 Aug 4, 2024
2bf7170
Merge pull request #29 from ubc-biztech/guard-routes
kevinxiao27 Aug 4, 2024
a123a6a
nit refactors
kevinxiao27 Aug 4, 2024
7b57237
Merge branch 'dev' into QR-scanner
kevinxiao27 Aug 4, 2024
1c55711
Merge branch 'dev' into QR-scanner
kevinxiao27 Aug 4, 2024
22e40f9
Merge pull request #24 from ubc-biztech/QR-scanner
kevinxiao27 Aug 4, 2024
46d6527
addressed suggestions made after first pr. Main changes were to move …
m20arcusk Aug 6, 2024
0960883
updated and imported some types for the questions and respones as wel…
m20arcusk Aug 8, 2024
7a29faa
small fix on a comment
m20arcusk Aug 8, 2024
a519108
didn't mean to delete BasicInformation in types.ts so I added it back
m20arcusk Aug 8, 2024
2df765c
fixed the indentation and BiztechEvent | null | undefined to just be …
m20arcusk Aug 11, 2024
a3279ab
update mock registrant data
isa-leroux448 Aug 12, 2024
f22c4b2
create percentage bar component
isa-leroux448 Aug 12, 2024
fff2c53
updated the biztech event type and modified the fetchData function to…
m20arcusk Aug 13, 2024
811fdb6
create basic layout
isa-leroux448 Aug 13, 2024
a5d779f
make charts responsive on horizontal resize
isa-leroux448 Aug 13, 2024
1177acb
attendee side done
AllanT102 Aug 13, 2024
6692bea
resolved merge conflicts in package-lock and tailwind.config
m20arcusk Aug 14, 2024
12a7965
Merge pull request #22 from ubc-biztech/admin-events
m20arcusk Aug 14, 2024
bdf2754
removed console.log testing lines and updated tailwind with divider c…
m20arcusk Aug 14, 2024
d16fc21
updated the fetchQuestion function to use async and await
m20arcusk Aug 14, 2024
b8a919c
re-ran npm install and ran npm ci to test if it worked (fixing the me…
m20arcusk Aug 14, 2024
3f30e0a
fixed import statement path for biztechEvent. having issue with acces…
m20arcusk Aug 14, 2024
7726729
Merge pull request #35 from ubc-biztech/admin-events
m20arcusk Aug 14, 2024
783649c
completed partenr reg form
AllanT102 Aug 15, 2024
37d9f2a
fetch backend
AllanT102 Aug 15, 2024
2abe54c
attendee + partner
AllanT102 Aug 15, 2024
0b15fd9
attendee + partner
AllanT102 Aug 15, 2024
02c972d
updated pages
AllanT102 Aug 15, 2024
93fe4d0
fixed types;
AllanT102 Aug 15, 2024
4035915
db
AllanT102 Aug 15, 2024
45119bc
fetch event dynamically
AllanT102 Aug 15, 2024
58753d5
add responsiveness
isa-leroux448 Aug 15, 2024
3e2f2dc
responsiveness fixes
isa-leroux448 Aug 15, 2024
347bd40
code clean up
isa-leroux448 Aug 15, 2024
b6eb611
Merge branch 'dev' of https://github.com/ubc-biztech/bt-web-v2 into e…
isa-leroux448 Aug 15, 2024
60b18d3
fetchbackend done with jwt auth
AllanT102 Aug 15, 2024
a878df4
oops...
AllanT102 Aug 15, 2024
88b29ba
oops
AllanT102 Aug 15, 2024
2cce179
fetch backend
AllanT102 Aug 15, 2024
be3925a
Delete .env
AllanT102 Aug 15, 2024
1aef301
ignore
AllanT102 Aug 15, 2024
d9e05ba
fix build
AllanT102 Aug 15, 2024
f817709
changed to use async and await and now grabbing user responses from r…
m20arcusk Aug 16, 2024
0f6fb2a
update types
isa-leroux448 Aug 17, 2024
ece81fb
comment out edit text
isa-leroux448 Aug 17, 2024
1fa423d
update date handling in profile event card
isa-leroux448 Aug 17, 2024
a712364
Merge branch 'dev' of https://github.com/ubc-biztech/bt-web-v2 into p…
isa-leroux448 Aug 17, 2024
34adaa5
move head
isa-leroux448 Aug 17, 2024
edbbf14
updated userResponse type and changed how it is accessed in userRespo…
m20arcusk Aug 17, 2024
8185620
Merge pull request #37 from ubc-biztech/fetchbackend
AllanT102 Aug 17, 2024
5f5efed
Add page scaffold and backend fetching
kevinxiao27 Aug 18, 2024
5ab669a
resolved merge conflicts
m20arcusk Aug 18, 2024
231e7ec
Merge pull request #34 from ubc-biztech/registration-user-popup
m20arcusk Aug 18, 2024
d5c4fea
Merge branch 'dev' of https://github.com/ubc-biztech/bt-web-v2 into p…
isa-leroux448 Aug 19, 2024
38064ee
Merge pull request #26 from ubc-biztech/profile-page
isa-leroux448 Aug 19, 2024
cbc4b6e
Feat: set up backend connections and props
kevinxiao27 Aug 19, 2024
af530d7
add chart empty states
isa-leroux448 Aug 19, 2024
9edec04
replace Attendee type with Registration
isa-leroux448 Aug 20, 2024
87e77fb
Feat: working filters and some outlined backend connections
kevinxiao27 Aug 20, 2024
b1bc44a
Rename imports
kevinxiao27 Aug 20, 2024
adc4964
Feat: modify useMemo dependncies + remove console.logs
kevinxiao27 Aug 20, 2024
dfde164
Fix mobile styling + font sizes
kevinxiao27 Aug 20, 2024
8844e4b
Feat: fix multiple empty keys bug
kevinxiao27 Aug 20, 2024
ecf28e9
Small code refactors + animation unmounting bug fix
kevinxiao27 Aug 20, 2024
6613638
attempt to resolve prettier formatting conflicts
kevinxiao27 Aug 20, 2024
597a408
Added artificial delay to UI clicks to prevent buggy framer-motion un…
kevinxiao27 Aug 20, 2024
4778236
renamed folder to EventsDashboard
kevinxiao27 Aug 21, 2024
9db49ff
add link to event page from cards
kevinxiao27 Aug 21, 2024
1a3e597
Simplified UI + backend integration
kevinxiao27 Aug 24, 2024
d1bb883
Merge branch 'event-stats' of https://github.com/ubc-biztech/bt-web-v…
isa-leroux448 Aug 26, 2024
cf8ce98
fix attendee table popup nested object issues
isa-leroux448 Aug 26, 2024
2227669
fix package-lock file
isa-leroux448 Aug 26, 2024
34816ea
Extract Component Refactoring + Tailwind Breakpoints
kevinxiao27 Aug 26, 2024
94ca5ee
Mobile fixes with refactors + guest banner
kevinxiao27 Aug 27, 2024
8c7c205
Conditonal filter tabs for guest view
kevinxiao27 Aug 29, 2024
afc187f
extract refactor event pricing + comment out saved events requirement
kevinxiao27 Aug 29, 2024
bc23510
apostrophe escape fix
kevinxiao27 Aug 29, 2024
aa339db
backend connections
kevinxiao27 Aug 29, 2024
af3c368
set error text to reflect server error
kevinxiao27 Aug 29, 2024
489392f
revert middleware changes
kevinxiao27 Aug 29, 2024
663d735
fix type error in API call
kevinxiao27 Aug 30, 2024
08844ff
edge case for parseInt, ensure app doesn't crash if qr code contains …
kevinxiao27 Aug 30, 2024
872216c
remove duplicate validation
kevinxiao27 Aug 30, 2024
ddc27e6
Component Scaffold
kevinxiao27 Aug 30, 2024
4f2c04c
Search and dropdown states
kevinxiao27 Aug 31, 2024
3583d6f
Complete QR companion form + backend
kevinxiao27 Sep 3, 2024
df20a22
Complete QR card rendering from backend
kevinxiao27 Sep 3, 2024
933bdf0
Styling clean up + tooltips
kevinxiao27 Sep 3, 2024
2f9c981
readd path guarding
kevinxiao27 Sep 3, 2024
ada9ee1
Refactor + naming conventions
kevinxiao27 Sep 3, 2024
09638da
planning out how to implement select pop up changes
m20arcusk Sep 10, 2024
ff0559d
debugging how to make api call with query params
m20arcusk Sep 17, 2024
53a4fd7
Comment out save logic
kevinxiao27 Sep 22, 2024
a1dc464
Fix buggy event cards
kevinxiao27 Sep 22, 2024
603c565
Update node dependencies
kevinxiao27 Sep 22, 2024
0e78fd6
remove log
kevinxiao27 Sep 22, 2024
9cfb9b7
Merge branch 'dev' into events-view
kevinxiao27 Sep 22, 2024
6f982c9
Merge pull request #39 from ubc-biztech/events-view
kevinxiao27 Sep 22, 2024
966e293
Merge branch 'dev' into qr-companion
kevinxiao27 Sep 22, 2024
fd401a8
Merge branch 'dev' into qr-scan-backend
kevinxiao27 Sep 22, 2024
1c7c8c8
Merge pull request #43 from ubc-biztech/qr-companion
kevinxiao27 Sep 22, 2024
dc68771
Merge pull request #41 from ubc-biztech/qr-scan-backend
kevinxiao27 Sep 22, 2024
a738943
form shit
AllanT102 Sep 22, 2024
812c555
merge
AllanT102 Sep 22, 2024
c8ce0c2
fetch backend for registrants and editing through popup and table cells
m20arcusk Sep 23, 2024
02eb35d
testing backend calls on random events - seeing errors on some but it…
m20arcusk Sep 23, 2024
35cd1ad
registrations done
AllanT102 Sep 24, 2024
f807e36
upload file done
AllanT102 Sep 28, 2024
11bd418
build errors
AllanT102 Sep 30, 2024
45fc432
fix all choices to be string
AllanT102 Sep 30, 2024
72e41f7
build errors
AllanT102 Sep 30, 2024
e17faea
fetching backend logic for registration table
m20arcusk Oct 12, 2024
97f520d
Merge pull request #30 from ubc-biztech/form-registration
AllanT102 Oct 12, 2024
8cbed6e
package-lock
AllanT102 Oct 12, 2024
eff7e1e
fixed type accessing in qrscanner since I changed attendee type, but …
m20arcusk Oct 13, 2024
44ecfb0
fixed some errors still some may just have to comment for now
m20arcusk Oct 13, 2024
5bfdbb3
fixing stuff for vercel build ;(
m20arcusk Oct 13, 2024
9d8df7a
connect backend
AllanT102 Oct 13, 2024
a709c87
key
AllanT102 Oct 13, 2024
2b90500
key
AllanT102 Oct 13, 2024
c19db9a
Merge pull request #48 from ubc-biztech/connect-admin-view-backend
AllanT102 Oct 13, 2024
dbcd81d
Merge branch 'dev' of https://github.com/ubc-biztech/bt-web-v2 into e…
isa-leroux448 Oct 13, 2024
b71ae17
QR scanner type fix
isa-leroux448 Oct 13, 2024
8adf8d6
fix stats imports
kevinxiao27 Oct 13, 2024
494f549
Untracked components?
kevinxiao27 Oct 13, 2024
f5d8b62
match vercel build cache
kevinxiao27 Oct 13, 2024
cd62cd4
forgot to add changes bruh lol
kevinxiao27 Oct 13, 2024
b72c2e4
Remove duplicate folder
kevinxiao27 Oct 13, 2024
2724a23
change casing
kevinxiao27 Oct 13, 2024
e87dd3b
Add cased folder back
kevinxiao27 Oct 13, 2024
b6ea118
Add admin event create and edit pages
voctory Oct 23, 2024
3b03cae
Remove dnd-kit dependencies
voctory Oct 23, 2024
bab9a7b
Merge pull request #50 from ubc-biztech/create-and-edit-event
AllanT102 Oct 26, 2024
b09dbe0
init
AllanT102 Oct 26, 2024
39be91c
Merge branch 'dev' of https://github.com/ubc-biztech/bt-web-v2 into q…
AllanT102 Oct 26, 2024
60b2f49
Merge pull request #52 from ubc-biztech/qr-tab
AllanT102 Oct 26, 2024
5df7a4e
icon
AllanT102 Oct 26, 2024
b1423bb
Merge pull request #53 from ubc-biztech/qr-tab
AllanT102 Oct 26, 2024
5aa349c
'origin/registration-user-popup-backend' -> registrations-table-backend
voctory Oct 30, 2024
1b16118
export csv logic and functionality
isa-leroux448 Oct 30, 2024
67730bb
add export pdf function
isa-leroux448 Oct 30, 2024
5ef2f07
refactor helper functions
isa-leroux448 Oct 30, 2024
81ba2b7
add document name
isa-leroux448 Oct 30, 2024
6494b1a
refactor formatting function
isa-leroux448 Oct 30, 2024
d412b15
Fix refresh table on admin registrations table
voctory Nov 2, 2024
fdcfe0e
Add rendering for custom questions on admin registration table
voctory Nov 2, 2024
eed2ed1
Fix styling of 'Edit event' button in the admin registrations table
voctory Nov 2, 2024
af37226
Fix TypeScript compile errors on admin registration page
voctory Nov 2, 2024
9c20486
disable export button for empty table
isa-leroux448 Nov 4, 2024
884d708
Merge pull request #55 from ubc-biztech/export-table
isa-leroux448 Nov 5, 2024
9fe018d
Added and integrated SortableHeader component
liuisaac Nov 8, 2024
3ae999d
added extra hover effects to make feature obvious
liuisaac Nov 11, 2024
6754852
Merge pull request #57 from ubc-biztech/sort-reg-tables
liuisaac Nov 13, 2024
6fa8ff3
Merge branch 'dev' of https://github.com/ubc-biztech/bt-web-v2 into e…
isa-leroux448 Nov 18, 2024
3eab1f8
Merge pull request #36 from ubc-biztech/event-stats
voctory Nov 28, 2024
4426be8
Force update dev branch
voctory Dec 8, 2024
e12788a
Fix stats component imports and pricing null-checks
voctory Dec 8, 2024
9e3b87d
Fix stats component rename
voctory Dec 8, 2024
db35942
Merge pull request #58 from ubc-biztech/fix-dev-deploy
voctory Dec 8, 2024
1f0efc6
Sync package-lock.json
voctory Dec 8, 2024
06727a2
Rebase admin registration table backend onto dev; add stats navigation
voctory Dec 10, 2024
af8a1d9
Fix overuse of Fetch calls on admin events API
voctory Dec 10, 2024
2fd280e
Merge pull request #59 from ubc-biztech/reg-table-backend
voctory Dec 10, 2024
6cec4ee
Change .env flag for prod and change to v2 url
voctory Dec 14, 2024
4ca0811
Merge pull request #60 from ubc-biztech/setup-db-prod
voctory Dec 15, 2024
8d6bd9e
Middleware gate bt-web-v2 to /companion unless you're an admin
voctory Dec 16, 2024
b58ed40
Initialize BluePrint 2025 companion
voctory Dec 16, 2024
6c7fabb
Add sharp package for image optimization
voctory Dec 16, 2024
8ae610b
Merge pull request #61 from ubc-biztech/init-companion
voctory Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: ["main", "dev"]
pull_request:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci --if-present
- run: npm run build --if-present
- run: npm test --if-present
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,18 @@ yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# amplify
.amplify
#amplify_outputs*
amplifyconfiguration*

.env
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).


## Getting Started

First, run the development server:
Expand Down
11 changes: 11 additions & 0 deletions amplify/auth/resource.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineAuth } from '@aws-amplify/backend';

/**
* Define and configure your auth resource
* @see https://docs.amplify.aws/gen2/build-a-backend/auth
*/
export const auth = defineAuth({
loginWith: {
email: true,
},
});
11 changes: 11 additions & 0 deletions amplify/backend.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineBackend } from '@aws-amplify/backend';
import { auth } from './auth/resource';
import { data } from './data/resource';

/**
* @see https://docs.amplify.aws/react/build-a-backend/ to add storage, functions, and more
*/
defineBackend({
auth,
data,
});
53 changes: 53 additions & 0 deletions amplify/data/resource.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { type ClientSchema, a, defineData } from '@aws-amplify/backend';

/*== STEP 1 ===============================================================
The section below creates a Todo database table with a "content" field. Try
adding a new "isDone" field as a boolean. The authorization rule below
specifies that any unauthenticated user can "create", "read", "update",
and "delete" any "Todo" records.
=========================================================================*/
const schema = a.schema({
Todo: a
.model({
content: a.string(),
})
.authorization((allow) => [allow.guest()]),
});

export type Schema = ClientSchema<typeof schema>;

export const data = defineData({
schema,
authorizationModes: {
defaultAuthorizationMode: 'iam',
},
});

/*== STEP 2 ===============================================================
Go to your frontend source code. From your client-side code, generate a
Data client to make CRUDL requests to your table. (THIS SNIPPET WILL ONLY
WORK IN THE FRONTEND CODE FILE.)

Using JavaScript or Next.js React Server Components, Middleware, Server
Actions or Pages Router? Review how to generate Data clients for those use
cases: https://docs.amplify.aws/gen2/build-a-backend/data/connect-to-API/
=========================================================================*/

/*
"use client"
import { generateClient } from "aws-amplify/data";
import type { Schema } from "@/amplify/data/resource";

const client = generateClient<Schema>() // use this Data client for CRUDL requests
*/

/*== STEP 3 ===============================================================
Fetch records from the database and use them in your frontend component.
(THIS SNIPPET WILL ONLY WORK IN THE FRONTEND CODE FILE.)
=========================================================================*/

/* For example, in a React component, you can use this snippet in your
function's RETURN statement */
// const { data: todos } = await client.models.Todo.list()

// return <ul>{todos.map(todo => <li key={todo.id}>{todo.content}</li>)}</ul>
3 changes: 3 additions & 0 deletions amplify/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
17 changes: 17 additions & 0 deletions amplify/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"target": "es2022",
"module": "es2022",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"paths": {
"$amplify/*": [
"../.amplify/generated/*"
]
}
}
}
108 changes: 108 additions & 0 deletions amplify_outputs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"auth": {
"user_pool_id": "us-west-2_w0R176hhp",
"aws_region": "us-west-2",
"user_pool_client_id": "6asli3l3qmvma3qn3p0if3e5ne",
"identity_pool_id": "us-west-2:0bfef155-88d4-40cb-9805-de9d366d6650",
"mfa_methods": [],
"standard_required_attributes": [
"email"
],
"username_attributes": [
"email"
],
"user_verification_types": [
"email"
],
"mfa_configuration": "NONE",
"password_policy": {
"min_length": 8,
"require_numbers": true,
"require_lowercase": true,
"require_uppercase": true,
"require_symbols": true
},
"unauthenticated_identities_enabled": true
},
"data": {
"url": "https://6lpg7zzwszbgvpnc4ye3baf3ii.appsync-api.us-west-2.amazonaws.com/graphql",
"aws_region": "us-west-2",
"default_authorization_type": "AWS_IAM",
"authorization_types": [
"AMAZON_COGNITO_USER_POOLS"
],
"model_introspection": {
"version": 1,
"models": {
"Todo": {
"name": "Todo",
"fields": {
"id": {
"name": "id",
"isArray": false,
"type": "ID",
"isRequired": true,
"attributes": []
},
"content": {
"name": "content",
"isArray": false,
"type": "String",
"isRequired": false,
"attributes": []
},
"createdAt": {
"name": "createdAt",
"isArray": false,
"type": "AWSDateTime",
"isRequired": false,
"attributes": [],
"isReadOnly": true
},
"updatedAt": {
"name": "updatedAt",
"isArray": false,
"type": "AWSDateTime",
"isRequired": false,
"attributes": [],
"isReadOnly": true
}
},
"syncable": true,
"pluralName": "Todos",
"attributes": [
{
"type": "model",
"properties": {}
},
{
"type": "auth",
"properties": {
"rules": [
{
"allow": "public",
"provider": "iam",
"operations": [
"create",
"update",
"delete",
"read"
]
}
]
}
}
],
"primaryKeyInfo": {
"isCustomPrimaryKey": false,
"primaryKeyFieldName": "id",
"sortKeyFieldNames": []
}
}
},
"enums": {},
"nonModels": {}
}
},
"version": "1"
}
18 changes: 18 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/styles/globals.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"assets": "@/assets"
}
}
8 changes: 8 additions & 0 deletions docs/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Describe your changes

## Issue ticket number and link

## Checklist before requesting a review
- [ ] I have performed a self-review of my code

## Images / Video of Feature
8 changes: 8 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**"
}
]
}
};

export default nextConfig;
Loading
Loading