-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: Implement Next.js server (#2) #1
Merged
aahna-ashina
merged 30 commits into
nation3:main
from
aahna-ashina:aahna-ashina/dw-43/implement-nextjs-server
May 24, 2022
Merged
feat: Implement Next.js server (#2) #1
aahna-ashina
merged 30 commits into
nation3:main
from
aahna-ashina:aahna-ashina/dw-43/implement-nextjs-server
May 24, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bootstrap a Next.js app.
Add Nation3 branding.
Add `/download-pass`
Add API: `/api/downloadPass`
aahna-ashina
changed the title
dw-43/implement-nextjs-server
feat: dw-43/implement-nextjs-server
May 13, 2022
Add API endpoint: `/api/pushUpdate`
Add API endpoint: `/api/pushNotification`
Thanks a lot! This is a great starting point. A few comments:
|
npm install wagmi ethers
Implement "Connect Wallet" functionality
@luisivan All right, that makes sense. So this Next.js server will purely be a REST API, with no visible UI 👍 A few follow-up questions about this:
|
aahna-ashina
changed the title
feat: dw-43/implement-nextjs-server
feat: implement next.js server (#2)
May 14, 2022
aahna-ashina
changed the title
feat: implement next.js server (#2)
aahna-ashina/dw-43/implement-nextjs-server
May 14, 2022
`npm install typescript --save-dev`
`npm install --save-dev @types/react @types/react-dom @types/node`
Add `types.ts`
Refactor from `types.ts` to `interfaces/index.ts`
Add class structure
aahna-ashina
changed the title
aahna-ashina/dw-43/implement-nextjs-server
feat: implement next.js server (#2)
May 16, 2022
aahna-ashina
changed the title
feat: implement next.js server (#2)
dw-43/implement-nextjs-server (#2)
May 16, 2022
Update README
Add TypeScript interfaces: `ApplePass` and `GooglePass`
I'd say GET makes more semantic sense.
I think so, with the correct MIME type defined so it triggers a download.
Exactly. |
aahna-ashina
changed the title
dw-43/implement-nextjs-server (#2)
Implement Next.js server #2)
May 21, 2022
aahna-ashina
changed the title
Implement Next.js server #2)
Implement Next.js server (#2)
May 21, 2022
aahna-ashina
changed the title
Implement Next.js server (#2)
feat: Implement Next.js server (#2)
May 21, 2022
`npm run lint` close #3
`npm uninstall react-dom` `npm uninstall react` `npm uninstall @types/react-dom`
`npm install next`
`npm update`
Add `pushUpdate`
…abstraction-to feat: send updates and push notifications to google pay passes (#7)
`npm install google-auth-library`
`npm install jsonwebtoken`
Add utils class for google authentication
…let-api-authen feat: google wallet api authentication and authorization (#11)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://app.dework.xyz/nation3/app-2?taskId=2a5ceb0e-ed0f-43ef-a211-16830aaba13f
Implement Next.js server
strict
TypeScript modeServer Build and Deployment
Download Pass -
/api/downloadPass
/api/downloadPass
Passes
class -downloadPass(passportID, platform)
Connect Wallet and Initiate Pass Download
Push Notification -
/api/pushNotification
Passes
class -pushNotification({title, content})
Push Template Update -
/api/pushUpdate
Passes
class -pushUpdate(newPassTemplate)
Documentation
/api/downloadPass
/api/pushUpdate
: Document the steps for updating the pass template/api/pushNotification
: Document the commands for pushing a notification