-
Notifications
You must be signed in to change notification settings - Fork 11
RightOn Host: Link Networking
Zach Thomas edited this page Dec 22, 2022
·
6 revisions
- Checkout the
dev
branch and rungit pull
- In Networking
src
folder add theaws-exports.js
file sent out via slack. -
cd
into thenetworking
folder - 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
-
cd
out of thenetworking
folder thencd
into theweb
folder - 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 start
and update your URL tohttp://localhost:3000/host/gameSessionId
to launch the Start Game page, with gameSessionId being the URL extension past/host/
inhost.rightoneducation.com/host/gameSessionId
when 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.
-
cd
into thenetworking
folder - run
npm install -g
(mac users might need to runsudo npm install -g
) - run
npm install
- run
npm run build
- then
npm link
-
cd
out of thenetworking
folder thencd
into thedebug-panel
folder - 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.