Conversation
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.
Project — Start / Run Instructions
This document contains the minimal steps to get both backend and frontend running locally for development, plus quick troubleshooting tips (subscriptions, auth, CORS).
Prerequisites
Repository layout
1 — Install dependencies
Open two terminals or run sequentially.
Backend
Frontend
cd /Users/shivamsoni/Desktop/rpg-assignment/frontend npm installIf you hit dependency peer errors with Apollo packages, run:
# in frontend npm install --legacy-peer-deps(Recommended: align package versions instead of forcing; see project package.json.)
2 — Environment variables (dev)
Create a .env or export variables in your shell. Minimum required:
Backend
Example (macOS bash/zsh)
Frontend
3 — Start servers (dev)
Start backend (NestJS)
Start frontend (Vite)
4 — Quick manual checks & API examples
Create post (authenticated)
5 — Subscriptions (real-time)
Debugging subscriptions
wsinstalled):6 — Common issues & fixes
CORS / Missing Authorization header
Restart the backend after changes.
Unauthorized on createPost
Subscriptions deliver to Node client but not browser
7 — Helpful logs to add (temporary)
Add these during debugging and remove before final submission:
8 — Production notes
Contact