Skip to content

clemlatz/all-stereotypes-are-wrong

Repository files navigation

All Stereotypes Are Wrong

All Stereotypes Are Wrong was made in 48 hours by Alexis Moroz (game design) & Clément Bourgoin (code) during the Diversity Jam (April 15-17, 2016) hosted at Mozilla Paris.

Play it: https://asaw.iwazaru.fr/

Run using docker

Attach MySQL database with --env DB=mysql://user:pass@host/base or with a .env file.

docker run -d -p 3400:8080 \
  --env-file=.env \
  --restart=unless-stopped \
  --name asaw \
  iwazaru/all-stereotypes-are-wrong:3.1.1

Run in dev mode

Requirements

  • Node.js 10.16.0
  • MySQL 5.7
DB=mysql://user:pass@host:port/base yarn dev

Release a new version

  1. Update version number & changelog in README.md
  2. Update version number in package.json
  3. Update version number in client/package.json
  4. Update version number in server/package.json
  5. Update version number in App.js
  6. Commit version bump & changelog update
  7. Tag last commit with new version
  8. Build docker image with new version tag:
docker build \
  -t iwazaru/all-stereotypes-are-wrong:latest \
  -t iwazaru/all-stereotypes-are-wrong:3.1.1 \
  .
  1. Push docker image with new tags:
docker push iwazaru/all-stereotypes-are-wrong:latest
docker push iwazaru/all-stereotypes-are-wrong:3.1.1
  1. On server, pull new image and restart

Todo

  • French version
  • Don't ask the same question twice

Changelog

3.1.1 (2021-04-06)

  • Upgrade dependencies to fix multiple security vulnerabilities

3.1.0 (2020-08-24)

  • Add stereotype browser page

3.0.2 (2020-07-27)

  • Upgrade dependencies to fix lodash vulnerability

3.0.1 (2020-06-16)

  • Upgrade dependencies to fix security vulnerabilities

3.0.0 (2020-01-16)

  • Rewrote front-end using React

2.0.1 (2019-11-21)

  • Fixed displaying statistics when answering
  • Upgraded dependencies to fix security flaws

2.0.0 (2019-08-02)

  • Replaced mongodb with MySQL
  • Added Docker support
  • Upgraded dependencies to fix security flaws

1.0.0 (2016-04-21)

  • First release