[BOUNTY] Set Up Next.js Frontend Project Structure#155
Open
HuiNeng6 wants to merge 1 commit intoANAVHEOBA:mainfrom
Open
[BOUNTY] Set Up Next.js Frontend Project Structure#155HuiNeng6 wants to merge 1 commit intoANAVHEOBA:mainfrom
HuiNeng6 wants to merge 1 commit intoANAVHEOBA:mainfrom
Conversation
- Next.js 15 with App Router and TypeScript strict mode - Tailwind CSS for styling with dark mode support - Basic routing: /deposit, /withdraw, /history - Freighter wallet integration setup - Zustand for state management - TanStack React Query for data fetching - Environment variable configuration - README with setup instructions Closes ANAVHEOBA#23
This file contains hidden or 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
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.
Summary
Implements the Next.js frontend project structure for PrivacyLayer as specified in #23.
Changes Made
Project Setup
Project Structure
\
frontend/
├── src/
│ ├── app/
│ │ ├── layout.tsx # Root layout with providers
│ │ ├── page.tsx # Home page with navigation
│ │ ├── providers.tsx # React Query provider
│ │ ├── globals.css # Global styles
│ │ ├── deposit/ # Deposit flow page
│ │ ├── withdraw/ # Withdrawal flow page
│ │ └── history/ # Transaction history page
│ ├── components/
│ │ ├── ui/ # Reusable UI components
│ │ ├── layout/ # Layout components
│ │ └── features/ # Feature-specific components
│ └── lib/
│ ├── sdk.ts # SDK integration setup
│ └── utils.ts # Utility functions
└── public/ # Static assets
\\
Dependencies
Features Implemented
Acceptance Criteria
pm run dev\ starts dev server
pm run build\ builds successfully
Testing
\\�ash
cd frontend
npm install
npm run build
\\
Build output:
\
Route (app) Size First Load JS
┌ ○ / 3.46 kB 106 kB
├ ○ /deposit 946 B 103 kB
├ ○ /history 455 B 103 kB
└ ○ /withdraw 947 B 103 kB
\\
Bounty
This PR addresses the bounty issue #23.
Reward: USDC via Drips Wave
Closes #23