Skip to content

Balaji4/play-mongo-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play with MongoDB example

An example project for using MongoDB with play-framework (morphia is used in this project for MongoDB object ocument mapping)

Prerequisite

  1. Install play framework
  2. Install MongoDB

Development

  1. Run mongo daemon (keep it running in a different terminal)
  • mongod
  1. Bootstrap DB (movies.json exists in the root directory of this project)
  • mongoimport --db MoviesDemo --collection Movie --file movies.json --jsonArray
  1. Run play server For Linux operating systems
  • sh run.sh

For windows

  • Run the run.bat file

##Test APIs

  1. http://localhost:9000/api/movies
  2. http://localhost:9000/api/movies/Braveheart

About

Example project that uses mongo DB with play-framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors