Skip to content

Commit 3d91e64

Browse files
committed
Updated to api v49.0
1 parent 389a703 commit 3d91e64

67 files changed

Lines changed: 10845 additions & 6827 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Multiplayer quiz app built on Salesforce technology (host app)
66

7-
[![GitHub Workflow](https://github.com/pozil/quiz-host-app/workflows/CI/badge.svg?branch=master)](https://github.com/pozil/quiz-host-app/actions) [![GitHub Workflow](https://github.com/pozil/quiz-host-app/workflows/Packaging/badge.svg)](https://github.com/pozil/quiz-host-app/actions) [![codecov](https://codecov.io/gh/pozil/quiz-host-app/branch/master/graph/badge.svg)](https://codecov.io/gh/pozil/quiz-host-app)
7+
[![GitHub Workflow](https://github.com/fostive/quiz-host-app/workflows/CI/badge.svg?branch=master)](https://github.com/fostive/quiz-host-app/actions) [![GitHub Workflow](https://github.com/fostive/quiz-host-app/workflows/Packaging/badge.svg)](https://github.com/fostive/quiz-host-app/actions) [![codecov](https://codecov.io/gh/fostive/quiz-host-app/branch/master/graph/badge.svg)](https://codecov.io/gh/fostive/quiz-host-app)
88

99
1. [About](#about)
1010
1. [Installation](#installation)
@@ -13,6 +13,7 @@
1313
1. [Player App Installation](#step-2-player-app-installation)
1414
1. [Host App Configuration](#step-3-host-app-configuration)
1515
1. [Questions Setup](#step-4-questions-setup)
16+
1. [Performance and Scalability](#performance-and-scalability)
1617
1. [Playing](#playing)
1718
1. [Troubleshooting](#troubleshooting)
1819
1. [Building and contributing](#building-and-contributing)
@@ -67,7 +68,7 @@ We assume that you have a working Salesforce DX environment (Salesforce CLI inst
6768
1. Open a Terminal and clone the git repository:
6869

6970
```
70-
git clone https://github.com/pozil/quiz-host-app.git
71+
git clone https://github.com/fostive/quiz-host-app.git
7172
cd quiz-host-app
7273
```
7374
@@ -92,7 +93,7 @@ We assume that you have a working Salesforce DX environment (Salesforce CLI inst
9293
1. Generate a [security token](https://help.salesforce.com/articleView?id=user_security_token.htm) for your Salesforce user.
9394
1. Generate a secure password using [this service](https://passwordsgenerator.net/) or any other. This will be the secret **Quiz API Key** that you'll set later in both applications.
9495
1. Deploy the **Quiz Player App** to Heroku by clicking this button:
95-
<a target="_blank" href="https://heroku.com/deploy?template=https://github.com/pozil/quiz-player-app/edit/master" title="Deploy to Heroku">
96+
<a target="_blank" href="https://heroku.com/deploy?template=https://github.com/fostive/quiz-player-app/edit/master" title="Deploy to Heroku">
9697
<img src="https://www.herokucdn.com/deploy/button.svg" alt="Deploy to Heroku"/>
9798
</a>
9899
@@ -178,6 +179,19 @@ You can import questions with the Salesforce CLI.
178179
sfdx force:data:tree:import -p data/CUSTOM_QUESTIONS/plan.json
179180
```
180181
182+
## Performance and Scalability
183+
184+
Performance is critical to the game experience: it must be as close as possible to real-time.
185+
186+
In full transparency, we have no precise benchmark on how well the game scales and which kind of Dyno to use but here are some pointers:
187+
188+
- A free Heroku Dyno supports a 50 player game just fine.
189+
- The app has worked flawlessly with 400 players on a Heroku Performance dyno but we never tested with more.
190+
191+
All the pressure lies on the Heroku infrastructure and in particular on the Node.js WebSocket server. We cannot guarantee how the network (sockets and load balancer) behave at large scale.
192+
193+
Note that Heroku datacenters are only available in North America and Europe. If you are running the quiz from another region (i.e.: India, Australia...), there's a chance that players will experience some lag.
194+
181195
## Playing
182196
183197
🎥 [Watch the playthrough video](https://www.youtube.com/watch?v=vLTZ_jdwhRo)
@@ -204,15 +218,15 @@ Players who also answered correctly but slower will earn a decreasing number of
204218
Shortly before running the official game, make sure to access the player app a first time to load it.<br/>
205219
The default Heroku setup uses a free Heroku dyno. This implies that apps that are inactive for more than 30 minutes are put to sleep. Any connection to the app will wake it up but it takes a bit less than a minute. You may experience some "Request time out" errors during that wake-up time.
206220
207-
If you are running the game with 40+ players, consider upgrading to a [Hobby dyno](https://www.heroku.com/dynos).
221+
If you are running the game with 50+ players, consider upgrading to a [Hobby dyno](https://www.heroku.com/dynos).
208222
209223
**Resetting the game**
210224
211225
You can reset the game at any time by clicking on the Reset button on top right of the Quiz app. This resets the quiz session to the registration phase, clears players and previous answers.
212226
213227
## Troubleshooting
214228
215-
Review these common problems. If you can't find a solution to your problem, [open a new issue](https://github.com/pozil/quiz-host-app/issues).
229+
Review these common problems. If you can't find a solution to your problem, [open a new issue](https://github.com/fostive/quiz-host-app/issues).
216230
217231
**Player app is not starting (Heroku error page is displayed)**
218232
@@ -226,7 +240,7 @@ Review these common problems. If you can't find a solution to your problem, [ope
226240
227241
**Player app is slow/lags, questions do not show up on time**
228242
229-
The default player app installation uses Heroku. Heroku datacenters are only available in North America and Europe. If you are running the quiz from another region (i.e.: India, Australia...), there's a good chance that your player will experience some lag. Consider switching to another cloud provider that lets you run a Node.js environment.
243+
See the [Performance and Scalability](#performance-and-scalability) section.
230244
231245
**Something is wrong with the quiz data or you'd like to reset it**
232246
@@ -244,4 +258,4 @@ Refresh the page to fix the problem. Refer to the **Player app wake-up** section
244258
245259
If you want to build the project from sources and contribute, run `npm install` to install the project build tools.
246260
247-
Here is the [Quiz Player App repository](https://github.com/pozil/quiz-player-app).
261+
Here is the [Quiz Player App repository](https://github.com/fostive/quiz-player-app).

config/project-scratch-def.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"orgName": "pozil",
2+
"orgName": "Quiz",
33
"edition": "Developer",
44
"language": "en_US",
55
"settings": {

data/developer/Quiz_Question__cs.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@
101101
"type": "Quiz_Question__c",
102102
"referenceId": "Quiz_Question__cRef9"
103103
},
104-
"Label__c": "What is the Spring '20 API version number?",
105-
"Answer_A__c": "45.0",
106-
"Answer_B__c": "46.0",
107-
"Answer_C__c": "47.0",
108-
"Answer_D__c": "48.0",
104+
"Label__c": "What is the Summer '20 API version number?",
105+
"Answer_A__c": "46.0",
106+
"Answer_B__c": "47.0",
107+
"Answer_C__c": "48.0",
108+
"Answer_D__c": "49.0",
109109
"Correct_Answer__c": "D"
110110
},
111111
{

0 commit comments

Comments
 (0)