-
Notifications
You must be signed in to change notification settings - Fork 178
Env example and readme update #184
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
base: main
Are you sure you want to change the base?
Env example and readme update #184
Conversation
…le examples - Updated README.md with your final version including: - Cleaner Development Guide section - Comprehensive 🔐 Environment Files notice with local/production guidance - Docker Setup (Option 1) and Manual Setup (Option 2) instructions - Improved "About Smart Contracts" section with proper heading hierarchy - Updated blockchain/.env.example with detailed comments and dummy values - Updated client/.env.example with simplified structure and helpful comments
WalkthroughDocumentation and environment configuration updates to improve new contributor onboarding. README reorganized with clearer local development guidance, and .env.example files added with concrete configuration examples and explanatory comments. Environment variables consolidated and clarified across blockchain and client packages. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (3)
blockchain/.env.example (1)
11-14: Reorder RPC URLs for consistency.The RPC URL environment variables are not in alphabetical order. Alphabetizing these keys improves consistency and readability. Reorder them: AMOY, BSC, FUJI, SEPOLIA.
Apply this diff:
- RPC_URL_AMOY=http://127.0.0.1:8545 - RPC_URL_SEPOLIA=http://127.0.0.1:8545 - RPC_URL_FUJI=http://127.0.0.1:8545 - RPC_URL_BSC=http://127.0.0.1:8545 + RPC_URL_AMOY=http://127.0.0.1:8545 + RPC_URL_BSC=http://127.0.0.1:8545 + RPC_URL_FUJI=http://127.0.0.1:8545 + RPC_URL_SEPOLIA=http://127.0.0.1:8545README.md (2)
112-113: Wrap bare URLs in markdown syntax.Lines 112 and 113 contain bare URLs that should be wrapped for proper markdown rendering. Use backticks or markdown link syntax:
- - Frontend: http://localhost:3000 - - Blockchain Node: http://localhost:8545 + - Frontend: `http://localhost:3000` + - Blockchain Node: `http://localhost:8545`
68-68: Add language specifiers to fenced code blocks.Fenced code blocks should specify their language for proper syntax highlighting. The blocks at lines 68, 78, 149, and 179 are missing language identifiers. Add the appropriate language specifiers:
- Line 68 & 78: Use
```plaintext(or omit if showing config structure)- Line 149 & 179: Use
```plaintext(or omit if showing config structure)Alternatively, if these blocks represent shell/bash examples, use
```bash.Example for line 68:
- ``` + ```plaintext PRIVATE_KEY=<your_real_private_key> RPC_URL_AMOY=<your_amoy_rpc> ... - ``` + ```Also applies to: 78-78, 149-149, 179-179
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
client/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (4)
README.md(1 hunks)blockchain/.env.example(1 hunks)blockchain/.env.local(1 hunks)client/.env.example(1 hunks)
🧰 Additional context used
🪛 dotenv-linter (4.0.0)
blockchain/.env.example
[warning] 13-13: [UnorderedKey] The RPC_URL_FUJI key should go before the RPC_URL_SEPOLIA key
(UnorderedKey)
[warning] 14-14: [UnorderedKey] The RPC_URL_BSC key should go before the RPC_URL_FUJI key
(UnorderedKey)
🪛 markdownlint-cli2 (0.18.1)
README.md
68-68: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
78-78: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
112-112: Bare URL used
(MD034, no-bare-urls)
113-113: Bare URL used
(MD034, no-bare-urls)
149-149: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
179-179: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🔇 Additional comments (3)
client/.env.example (1)
1-6: Clean example file structure.The consolidated client environment file is well-documented with clear placeholder and explanatory comment. The removal of RPC URL variables (now handled in blockchain/.env.example) aligns with the PR objective of consolidating backend configuration.
README.md (2)
38-84: Excellent environment setup documentation.The new environment files section clearly explains the distinction between dummy values for local development and real keys for deployments, with concrete copy commands. This significantly improves onboarding clarity and directly addresses the PR objective. The structure and tone are appropriate for contributor guidance.
86-189: Well-organized setup instructions.The separation of Docker and manual setup flows with clear step-by-step instructions (clone, environment setup, install, run) provides excellent guidance for new contributors. Both paths are comprehensive and the examples are concrete and actionable.
Summary
This PR improves the onboarding experience for new contributors.
Changes Made
blockchain/.env.examplewith required environment variables.client/.env.examplefor frontend environment handling.Why This Is Needed
The project did not include
.env.examplefiles and the README was unclear for new contributors.These improvements make the project easier to set up locally and reduce confusion for first-time contributors.
Related Issue
Fixes #183
Summary by CodeRabbit
Documentation
Chores