Repository navigation
RightOn Host: Link Networking
Zach Thomas edited this page Dec 22, 2022
·
6 revisions
- Checkout the
devbranch and rungit pull - In Networking
srcfolder add theaws-exports.jsfile sent out via slack. -
cdinto thenetworkingfolder - run
npm install -g(mac users might need to runsudo npm install -g) You may see some peer dependency conflicts - in that case runsudo npm install -g --force - run
npm install - run
npm run build - then
npm link -
cdout of thenetworkingfolder thencdinto thewebfolder - run
npm link @righton/networking(if you are facing some dependency issues, try runningnpm link @righton/networking --legacy-peer-deps) - then
npm install(if you are facing some dependency issues, try runningnpm link @righton/networking --legacy-peer-deps) - run
npm startand update your URL tohttp://localhost:3000/host/gameSessionIdto launch the Start Game page, with gameSessionId being the URL extension past/host/inhost.rightoneducation.com/host/gameSessionIdwhen a game is launched fromcentral.rightoneducation.com.
** Note: it can take a few times refreshing the page for it to actually connect and hit the API endpoint. Usually you'll get an internal server error the first handful of times trying to connect to the Lambda, but it will go through.
-
cdinto thenetworkingfolder - run
npm install -g(mac users might need to runsudo npm install -g) - run
npm install - run
npm run build - then
npm link -
cdout of thenetworkingfolder thencdinto thedebug-panelfolder - run
npm link @righton/networking - then
npm install -
npm start🤞
** One thing to note is that it can take a few times of clicking the Create Game Session button for it to actually connect. Usually you'll get an internal server error the first handful of times trying to connect to the Lambda, but it will go through. (Helpful to inspect and watch the console here)
Once it does connect and hit the endpoint - you should see the game session ID returned in the browser.
- RightOn Onboarding Guide
- Local Setup: Zero to Running
- Dev Setup
- Dev Intern Cheatsheet
- Learning Resources
- Architectural Overview
- Authentication & Authorization
- GraphQL Subscriptions 101
- Custom Resolvers: PreSignUp
- Required Console Settings
- Relational Database ERD
- Short Answer Responses