sm-exercises

Exercises micro service

Usage no npm install needed!

<script type="module">
  import smExercises from 'https://cdn.skypack.dev/sm-exercises';
</script>

README

SM Exercises

Micro service which manage notions and exercices.

 Schemas

Question

{
  _id: ObjectId,
  type_id: ObjectId,
  level: String,
  notion_id: ObjectId,
  description: String,
  help: String,
  empty: Boolean,
  isPublished: Boolean,
  exercise: {
    ...// Depends on type
  },
  images: [String],
}

Question type schema

let schema = { ... // check Question exercise: { raw: String, compiled: { answers: [{ force: Number, answer: String, position: { x: Number, y: Number, } }], traps: [{ force: Number, trap: String, isImage: Boolean, }], }, boxSize: { height: Number, width: Number } }, }