0b8527dbd85585add9a6c59eae4ace712b036716
Quiz
App that allows the user to set up a quiz, and answer the questions
Installation
Install Docker
- On Windows and Mac
Install Docker Desktop
Windows: https://docs.docker.com/desktop/install/windows-install/
Mac: https://docs.docker.com/desktop/install/mac-install/
- On Linux
# For Debian-based systems
sudo apt install -y docker.io
sudo apt install docker-compose
#For Arch-based systems
sudo pacman -S docker.io
sudo pacman -S docker-compose
# Making Docker run now and on startup
sudo systemctl start docker
sudo systemctl enable docker
# Using the CLI without sudo
sudo usermod -aG docker $USER
sudo reboot
How to run
- Navigate to the root of the project
- Open a terminal
- Start the containers:
docker compose up
- Visit localhost:4200 to play the quiz!
Benchmarking
- Go to the /scripts folder and run the LoadTestMultiple.sh script
- Inside you can change how many sessions should be created (set to 6 by default)
- In the /scripts/benchmarks folder you can find some benchmarks I've done
Notes
- If the data is not present, it will try to query it from the external API, which takes significantly longer (only 1 request per 5 seconds)
- When running it locally, give the backend a few minutes to gather data in bulk (should be completely done in ~7 minutes)
- It refreshes this data every night in the background, so it stays up to date
Languages
Java
59.7%
TypeScript
22%
Shell
5.3%
HTML
5.1%
SCSS
3.8%
Other
4.1%