Simple React app to simulate the Cloud Computing written "exam" @ Sapienza University of Rome.
DISCLAIMER: since this simulator has been developed just to have a simple working tool, this code may not be the cleanest in the world, feel free to refactor it and open a PR :)
Please if you don't have Docker install it. After Docker has been installed, from the root directory where the Dockerfile is, you can simply run:
docker build . -t cloud_simulator
docker run --rm -i -p 80:3000 cloud_simulatorOtherwise, you can directly use the image from docker hub (may not be always up to date):
docker run --rm -i -p 80:3000 lmriccardo/cloud_simulatorThe simulation is going to be available at localhost:80.
If you do not have Docker installed or want to build and run the simulator from source
- Node.js
npm
Be sure to have all the Node dependencies installed:
npm installnpm run startIf you want to contribute to the "database" of questions, simply edit the questions.json and open a Pull Request.
Every new question should have the following entries:
question: a string with the questionoptions: an array of possible answersanswer: the index (starts from 0) of the correct answer among the ones in theoptionsarrayoccurrences: an array of exam/simulation dates in which the question occurredfigure: an optional field for the name of a figure that should be shown (to add new images upload them in thesrc/assets/imagesdirectory and accordingly update themapImagesdictionary inApp.js)