Skip to content

docs: improve Windows & WSL clarity for Java + MongoDB quickstart #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ mvn wrapper:wrapper
./mvnw clean install
```

> **Note**: For Windows, use `mvnw.cmd clean install`
> **Windows users:**
> Use `.\mvnw.cmd clean install` and `.\mvnw.cmd spring-boot:run` in PowerShell
> Use `mvnw.cmd` in CMD (Command Prompt)
>
> If you're using WSL (Windows Subsystem for Linux), use the regular `./mvnw` syntax.

## Install Keploy 📥

Expand Down Expand Up @@ -160,6 +164,15 @@ This will run the tests and generate the report in the `Keploy/reports` director

Final thoughts? Dive deeper! Try different API calls, tweak the DB response in the `mocks.yml`, or fiddle with the request or response in `test-x.yml`. We provided you with some data in [potions.json](https://github.com/keploy/samples-java/blob/main/spring-boot-mongo/potions.json). Run the tests again and see the magic unfold! ✨👩‍💻👨‍💻✨

## 🛠️ Troubleshooting

| Issue | Cause | Solution |
|------ |-------|----------|
| `./mvnw: Permission denied` | Missing execute permission | Run `chmod +x mvnw` |
| MongoDB not reachable | Docker container isn't running | Check with `docker ps` and start MongoDB again |
| Spring Boot not detecting Mongo | Wrong port or container name | Ensure `--name spring-boot-mongo` and port `27017` are correct |


## Wrapping it up 🎉

Congrats on the journey so far! You've seen Keploy's power, flexed your coding muscles, and had a bit of fun too! Now, go out there and keep exploring, innovating, and creating! Remember, with the right tools and a sprinkle of fun, anything's possible. 😊🚀
Expand Down