An example project for using MongoDB with play-framework (morphia is used in this project for MongoDB object ocument mapping)
- Install play framework
- Install MongoDB
- Run mongo daemon (keep it running in a different terminal)
mongod
- Bootstrap DB (movies.json exists in the root directory of this project)
mongoimport --db MoviesDemo --collection Movie --file movies.json --jsonArray
- Run play server For Linux operating systems
sh run.sh
For windows
- Run the
run.batfile
##Test APIs