Skip to content

engelju/flashcards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flashcard App

App being developed along with FHNW-WEBFR-HS22.

Getting started

Start mongodb with: mongod --dbpath "$(pwd)/data/db"

Start the app with: gradle bootrun

Then connect via: http://localhost:8080/flashcard-mvc/questionnaires

Helpful hints

Wichtige Files:

  • src/main/java/ch/fhnw/webfr/flashcards/FlashcardsApplication.java
  • src/main/resources/application.properties

Mongosh:

$ mongosh
Current Mongosh Log ID: ...
Connecting to:  mongodb://...
Using MongoDB:  ...
Using Mongosh:  ...
test>
test> use webfr
switched to db webfr
webfr> db.questionnaires.insert({ title: 'Test 1', description: 'Some description...'})
WriteResult({ "nInserted" : 1 })
webfr> db.questionnaires.find()
{ "_id" : ObjectId("5f65fb0ecde6fe22ab47e2e6"), "title" : "Test 1", "description" : "Some description..." }
webfr>

Weitere Befehle in der mongo-Shell

  • Alle Questionnaire Entitäten auflisten
webfr> db.questionnaires.find()
  • Search Criteria einsetzen – über ID
webfr> db.questionnaires.find( { _id: ObjectId('5f65fb0ecde6fe22ab47e2e6') } )
  • Search Criteria einsetzen – über Title
webfr> db.questionnaires.find( { title: 'Test 1'} )

About

App being developed along with https://softwarelab.ch/fhnw/webfr/ - le01 to le05

Topics

Resources

Stars

Watchers

Forks