https://github.com/mongodb-developer/morphia-quickstart
https://github.com/mongodb-developer/morphia-quickstart
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mongodb-developer/morphia-quickstart
- Owner: mongodb-developer
- License: apache-2.0
- Created: 2022-03-23T09:55:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-12T18:27:55.000Z (about 1 year ago)
- Last Synced: 2025-03-28T00:06:36.324Z (9 months ago)
- Language: Java
- Size: 24.4 KB
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Morphia Quickstart
This repository is for the article Morphia Java ODM for MongoDB that can be found on MongoDB's website at https://www.mongodb.com/languages/morphia.
## Getting started
You should be able to load the code in an editor and run it from there. However, if you prefer, you can also use a container rather than installing the necessary runtimes.
### Using a container
Start the container
```
docker run -it -d --rm --name maven -v $(pwd):/opt/app -p 8080:8080 maven:3.8-openjdk-11 sleep infinity
```
Open a shell session to the container
```
docker exec -it maven /bin/bash
cd /opt/app
```