A quiz like game built on top of Nodejs and React for Kubernetes.
Configure the API Server env variables to include:
MONGO_IP
: The name of the docker container/k8s-statefulset for mongodbMONGO_INITDB_ROOT_USERNAME
: User for authenticating on the databaseMONGO_INITDB_ROOT_PASSWORD
: Password for the mongo userMONGO_INITDB_DATABASE
: Database that will be created to store our nosql documentsMONGO_PORT
: The port on which the mongo db will connect, ussually is 27017.NODE_PORT
: The port on where the API server will listen for requests.QUIZ_API_KEY
: Your API key to the quizapi.ioSECRET_TOKEN
: The token for generating the user jwt on login/signupNote that this .env file should be created in the /server folder.
Having this env file created the docker application can be runned with the command: docker-compose -f docker-compose.yml up -V --build -d