IntelliJ. I'm using Version 2021.2.2. There might be issues with Kotlin if you use an older version of IntelliJ, so please update to the newest version before cloning the project. To do this:
- Click on IntelliJ in the menu bar
- Click on "Check for Updates..."
- You may have to update multiple times before getting to the current version.
After getting IntelliJ updated, add the Kotlin plugin:
- IntelliJ IDEA >> Preferences >> Plugins >> Search for Kotlin and install it
git clonethe repo and open the project with IntelliJ.- Set the SDK to version 1.8:
- File >> Project Structure >> Project Settings >> Project
- Click the green hammer at the top right of IntelliJ or use:
- Build >> Build Project
- open
src/main/kotlin/edu.byu.mealplanningassistant.Main.kt - click the green arrow to the left of
fun main()
To see what the objects look like here Note: these objects will be sent in http requests as JSON objects
- brew tap mongodb/brew
- brew install mongodb-community@5.0
- brew services start mongodb-community@5.0
- mongosh
- use mealManager
- (First time only) db.createCollection("recipes")
- exit
- brew services stop mongodb-community@5.0