Use Asset to manage JavaScript and CSS.
Change the route to named route with controller.
Add new configuration file of MongoDB.