Play Framework - Beginner Tutorial : Make a post request and save the form data in Mongodb

Play Framework - Beginner Tutorial : Make a post request and save the form data in Mongodb

Before the tutorial 

You should :

Tutorial 

Youtube video

After the tutorial

You should be able to :

  • create a compile-time DI play project 
  • create a form in a play template
  • understand that a simple post in play requires two endpoints.
    • one to serve the form  
    • one to handle the post request
  • create a  model class - map a play Form to a case class - mapping
  • save a case class in Mongo DB 

Resources

Play2-reactivemongo doucumentation

Be careful: we are using play2-reactivemongo  plugin and not reactivemongo driver

Bonus