flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Docs] Fix backend README: nonexistent npm run db:push and wrong env var names

Open blurbeast opened this issue 2 weeks ago • 4 comments

Overview & Background

backend/README.md:13 documents npm run db:push — no such script exists (the real scripts are prisma:generate/prisma:migrate/prisma:deploy). backend/README.md:20-24 lists env vars STELLAR_RPC_URL and NETWORK_PASSPHRASE, but the backend reads SOROBAN_RPC_URL (backend/src/config/env.ts:96,143) and never reads those two (they are frontend vars). A config copied from this README leaves SOROBAN_RPC_URL unset — a startup failure in production per env.ts:99. This README is linked from docs/DEVELOPMENT.md as the Prisma reference.


Technical Specification & Architecture

  1. Replace db:push with the real prisma:* scripts.
  2. Rewrite the env example to match backend/.env.example and env.ts exactly.

Target Files

  • backend/README.md
  • backend/.env.example

Acceptance Criteria

  • [ ] Every documented npm script exists in backend/package.json.
  • [ ] Every documented env var is actually read by the backend.
  • [ ] A contributor following the README reaches a working configuration.

blurbeast avatar Nov 18 '26 19:11 blurbeast

@samjay8 has applied to work on this issue as part of the Stellar Wave Program's 11th wave.

I can fix this

ℹ️ Repo Maintainers: To accept this application, review their application or assign @samjay8 to this issue.

samjay8 avatar Nov 20 '26 12:11 samjay8

Congratulations, @samjay8! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.

🧑‍💻 @samjay8: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Nov 20 '26 12:11 drips-wave[bot]

🎉 This issue has been marked as completed on GrantFox!

@samjay8's PR #1922 was approved and merged by @K1NGD4VID.

🏆 @samjay8: You earned 40 FoxPoints for this contribution! Your current tier: Builder (2,780 total points). Track your full progress on GrantFox.

👏 Great work, @samjay8! Keep contributing to LabsCrypt.

grantfox-oss[bot] avatar Nov 21 '26 14:11 grantfox-oss[bot]

This issue has been completed by @samjay8 as part of the Stellar Wave Program's 11th Wave 🥳

😎 @samjay8: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Nov 21 '26 14:11 drips-wave[bot]