This is a card game engine. The engine is meant for developers who want to offer a creative and playfull way to explain a certain concept. The game consist of
The focus in my work is the explain concepts and terms with imaginary expressed in sites and educational tools. See more: dwarshuis.com
Here are the live versions of the cardsets:
This repo contains:
The monitor can be used to find misconceptions realtime.
Here are the repos
of the cardgame implementation, or the card sets:
There's always somebody wrong on the internet. When that itches, We need to get it right, don't we? And it needs to be fair. So we start writing, right away. As if it has urgency and it hasn't been done before....
No, no, no. stop! A cardgame offers a platform to create reusable information. Easy to use, expert-backed and a slow game attached to it. So don't waste your time, use others knowledge and preparatory work.
You can choose any relevant topic that needs explaining, needs background information, needs it myths busted, etc.
Most cardgames don't pretend to be right in everything at all times. Our objective has been to:
Choose your own target group. The idea is however to activate them with the game, like for example a twitter poll.
Fixed URLs to cards, questions, answers, related video, podcast, opinions of experts, and further reading.
We provide the tools in order to individualize your responses with the fixed URLS in social media:
All content in this repository is copyright by the contributors.
All text is licensed CC-BY, and all code is licensed under the MIT License.
Contributors: Kor Dwarshuis <@kordwarshuis>, Henk van Cann <@henkvancann>
.ev.example
.env-example
to .env
, check that the file existsnpm install
from commandline to install dependenciesnpm run serve
to start a webserver/ Click one of the links that will be provided, Example:
App running at:
- Local: http://localhost:8080/
- Network: http://192.168.178.68:8080/
The repository is a general repository from which you can create a BTC (Bitcoin) version and a BCB (Blockchain) version.
Before pushing to live server four files have to be edited in order to make it the BTC or the BCB version:
/vue.config.js
Open the file with a text-editor, e.g. nano
nano ./vue.config.js
Now you have a choice either to build a Bitcoin or Blockchain version. You can't build both a the same time. Uncomment the relevant code in ./vue.config.js
.
Example
//=============
// BTC version
publicPath: process.env.NODE_ENV === 'production' ? '/t/btc/' : '/',
//=============
//=============
// BCB version
// publicPath: process.env.NODE_ENV === 'production' ? '/t/bcb/' : '/',
//=============
In vue.config.js you can define the subdirectory where you finally want to place the app.
/public/.htaccess
Open the file with a text-editor, e.g. nano
nano ./public/.htaccess
Now you have a choice either to build a Bitcoin or Blockchain version. You can't build both a the same time. Uncomment the relevant code in ./public/.htaccess
.
Example:
####################
# BTC version:
RewriteBase /t/btc/
####################
####################
# BCB version:
# RewriteBase /t/bcb/
####################
/.env
Open the file with a text-editor, e.g. nano
nano ./.env
Now you have a choice either to build a Bitcoin or Blockchain version. You can't build both a the same time. Uncomment the relevant code in ./.env
.
Please note: you have to restart local webserver to see changes in .env
in effect.
Example:
####################
# BTC specific version:
####################
VUE_APP_TITLE="Bitcoin Misconceptions."
VUE_APP_DESCRIPTION="Misconceptions about bitcoin hold back progress. Found a misconception? Lookup-Copy-Paste our permanent links with curated expert info!"
VUE_APP_AUTHOR="Blockchain Bird"
VUE_APP_SOCIAL_MEDIA_IMAGE=social-media-bitcoin4.jpg
VUE_APP_SOCIAL_MEDIA_IMAGE_WIDTH=1200
VUE_APP_SOCIAL_MEDIA_IMAGE_HEIGHT=628
VUE_APP_GOOGLE_ANALYTICS_ID="XXXXXXXX"
####################
####################
# BCB specific version:
####################
#VUE_APP_TITLE="Blockchain Misconceptions."
#VUE_APP_DESCRIPTION="Misconceptions about blockchain hold back progress. Found a misconception? Lookup-Copy-Paste our permanent links with curated expert info!"
#VUE_APP_AUTHOR="Blockchain Bird"
#VUE_APP_SOCIAL_MEDIA_IMAGE=social-media-blockchain4.jpg
#VUE_APP_SOCIAL_MEDIA_IMAGE_WIDTH=1200
#VUE_APP_SOCIAL_MEDIA_IMAGE_HEIGHT=628
#VUE_APP_GOOGLE_ANALYTICS_ID="XXXXXXXX"
####################
Please note: /.env
is not in repository, use /.env.example
and create /.env
. See instructions here
/live.sh
Uncomment the relevant code in ./live.sh
and add your ssh login credentials to your hosting service.
Run npm run build
to create a ./dist
directory (production version)
This script can be used to push the build to the live web server.
Please note: /live.sh
is not in repository, use /live.example.sh
and create /live.sh
.
More info on https://vuejs.org
This app is built in Vue.js.
Libraries also used:
The content is managed via Google Sheets, and then pulled to a .csv file via PHP De content is pulled from the .csv file via D3.js:
Google Sheets -> data.csv -> card game
The Google Sheets step is not necessary and can be removed from the working flow if desired.
The .CSV step helps to speed the loading time, since Google Sheets tends to be slow at times.