Skip to content

MeowningMaster/webxwiz-task

Repository files navigation

WebXwiz technical assignment

Task description

Hosted version

Server is hosted on Digital Ocean. Visit Apollo Studio

How to run

  1. Clone this repository
  2. Install Docker
  3. Copy config.docker.template.yaml file as config.docker.yaml
  4. (Optional) Provide .env with port configuration for docker-compose.yml
  5. Run docker compose up -d
  6. Done! Visit documentation

Technical overview

QR Code

The QR code generated by changeTotp mutation is represented as data url. It can be converted to an image using this tool

Development setup

  • Install Volta
  • Install Node.js: volta install node
  • Install pnpm: volta install pnpm
  • Install dependencies: pnpm install
  • Copy config.template.yaml file as config.yaml
  • Change MongoDB uri in config.yaml

Now you can

  • Run project: pnpm start or launch debug in vscode
  • Run unit tests: pnpm test