To validate for the correct view and interactiveity with the different devices for the users, the use of browserstack
and lambdatest
has been incorporated:
The platform uses the Firebase v9
and HasuraDB
(w/ PostgreSQL & GraphQL)
*if the deployment
to Heroku
is necessary, use the following guide
The scores-platform
uses redis
for caching
of the API DATA for the correct implementation of faster responses and waiting times for the user.
Currently deployed on upstash - Free-tier
model of the application.
*example-upstash-redis-sveltekit blog-upstash
The app chaching
works using the Hasura Events
Trigger, which sends out a POST
request to a designated endpoint
to update the redis
cache accordingly, using the latest changed & updated data.
For more information on this
can be read here
*future-correction: deployment on a docker-image
instance with the application as one sinlge image.
*alternative-solution-include the use of service-workers
and node-cache
, as per solution example reddit-thread
Website Healthiness
SEO Check
- auto-redirect-page-URL
- *discontinued-use-of-
@apollo-client
init-@apollo-client - deploy-to-heroku
- js-issues-outline-gist
- docker-deployment-node-ENONT-issue
- heroku-npm-and-node-deployment-1
- heroku-npm-and-node-deployment-2
[from VIRTUAL BOX]using W2DSL now- heroku-docker-deployment
- docker-ize-svelte-kit-app-1
- docker-ize-svelte-kit-app-2
- docker-ize-svelte-kit-app-3
- unresolved-hasura-slow
- optimizing-Hasura-DB-INDEXING-JSON-1
- optimizing-Hasura-DB-INDEXING-JSON-2
- optimizing-Hasura-DB-INDEXING-JSON-3
- optimizing-Hasura-DB-INDEXING-JSON-4
- localstorage vs. cookies
- ⭐ csp-cheat-sheet
- sveltekit-csp-config
- sveltekit-csp-config-github
- GOOGLE-CSP
- YANDEX-CSP
- google-analytics-js-and-content-security-policy-stackoverflow
- web.dev/strict-csp
- refused-to-load-the-script-because-it-violates-the-following-content-security-po
- Content-Security-Policy
- what-s-the-purpose-of-the-html-nonce-attribute-for-script-and-style-elements
- inline_code_is_considered_harmful
- csp-google-cover
- mozilla-csp-cover
- strict-dynamic
- csp-understand-blog
- hash-vs-nonce-blog
- example-use-csp-blog
- blog-on-csp
- strict-dynamic-example-inject
Hash:
- cannot put EXPIRATION on Nested Keyspace Redis
- [use HLEN to obtain number of keys inside a key space]
- ⭐ bull npm
- bull docs
- ⭐ heroku blog bull w/ throng
- heroku blog bull w/ throng example
- heroku deployment bull
- cluster, CPU worker deployment (like throng)
- throng, cluster-based NodeJS apps
- throng, GitHub
- heroku dyno types
- dyno usage
- throng Heroku handling
- enabling concurrency | heroku
- bull example full | stackoverflow
- heroku error-pages | heroku
Notes
Free
Hobby
Standard-x1
dyno's only support up to 1
clustering worker per app. Thus, increasing the scaling of the applciation to >1
(ie: web
app) will not be allowed.
Similarly, the use of the worker
attachement of the Heroku App will be cahrged depending on the dyno
type used by the worker
.
Higher rank pricing Heroku Apps need to be purchased to enable the use of the appliaction higher clustering
and worker
capabilities.
-
Use the
VITE_
server-side TOKENS// ... example of importing variables from `.env` // console.info(import.meta.env.VITE_MY_VARIABLE);
-
Setting time-outs in JS
https://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sleep/39914235#39914235
- Please make the necessary changes to the
sveltekit.config.js
and then, - Delete the
svelte-kit
folder respectively and donpm run dev
to apply the necessary changes
heroku logs --remote heroku-dev --tail --dyno web
to view logs of a particualr type in the console, for a particular app
//the branch you want to overwrite
git checkout email
//reset to the new branch
git reset --hard origin/staging
// push to remote
git push -f
Invoke-RestMethod -Method "POST" -Uri 'https://betarena-scores-platform.herokuapp.com/api/pages_and_seo/cache-seo-update.json';
Invoke-RestMethod -Method "POST" -Uri 'https://betarena-scores-platform.herokuapp.com/api/navbar/cache-data-update.json';
Invoke-RestMethod -Method "POST" -Uri 'https://betarena-scores-platform.herokuapp.com/api/footer/cache-data-update.json';
Invoke-RestMethod -Method "POST" -Uri 'https://betarena-scores-platform.herokuapp.com/api/featured_match/cache-data-update.json';
Invoke-RestMethod -Method "POST" -Uri 'https://betarena-scores-platform.herokuapp.com/api/featured_betting_sites/cache-data-update.json';
Invoke-RestMethod -Method "POST" -Uri 'https://betarena-scores-platform.herokuapp.com/api/best_goalscorer/cache-data-update.json';
Invoke-RestMethod -Method "POST" -Uri 'https://betarena-scores-platform.herokuapp.com/api/league_list/cache-data-update.json';
Invoke-RestMethod -Method "POST" -Uri 'https://betarena-scores-platform.herokuapp.com/api/leagues_table/cache-data-update.json';
Invoke-RestMethod -Method "POST" -Uri 'https://betarena-scores-platform.herokuapp.com/api/seo_block/cache-data-update.json';
Invoke-RestMethod -Method "POST" -Uri 'https://betarena-scores-platform.herokuapp.com/api/tournaments/league_info/cache-data-update.json';
Invoke-RestMethod -Method "POST" -Uri 'https://betarena-scores-platform.herokuapp.com/api/tournaments_standings/cache-data-update.json';
If you wish to develop new components for the platform, please follow the following guide of how the components must be structured:
- use the
console.group
to group yourdevTool
logs and hafve it working in theDEV
environment.
|
https://stackoverflow.com/questions/63668154/describe-and-hint-what-parameters-a-function-requires