This desktop application is my fist project using Kotlin
and its ecosystem.
It's a simple quiz game to check anybody knowledge on a particular subject.
- First user have to sign in
- Then answer the questions
- Finally, his score will be displayed with an appreciation
The application configuration is define in the build.gradle.kts
file.
First of all, you have to install a MongoDB tool on your machine.
- You can download MongoDB compass, a user friendly tool to handle interaction with the database.
- If you prefer command line tools, you can download the MongoDB Shell or the Atlas CLI.
After your DB configuration, you have to create a .env
file, to set your
environnement variables. Check the .env.sample
file to identify the
necessary keys you have to set :
MONGODB_USERNAME=
MONGODB_PASSWORD=
MONGODB_HOST=
DATA_HOST=
Then, you have to create a database and a collection where documents looks like this type :
data class QuestionItems(
val title: String,
val propositions: List<String>
)
data class Question(
val _id: ObjectId,
val question: QuestionItems,
val correction: String
)
It's highly recommended to use IntelliJ IDE for better user experience.
Not yet but coming asap.