In the last article, we have created “Play for Java” application using Activator. In this article, we will try to explore the project folder structure. In the last article, we have created a project name as “Learning_Play_App”. The folder structure follows as shown below.
- The “app” folder contains controllers and views. For any enterprise application, if you want to add other source code folder like the model, you can very well create “model” folder under “app” and keep all your domain models under it.
- The “conf” folder contains all the configuration files.
- application.conf –> contains all the application related configurations like database connectivity details, web application context path details, etc.
- logback.xml –> contains the application logging related configuration details.
- routes –> you need to configure all the REST services endpoints over here.
- The “logs” folder contains the application log file.
- The “projects” folder contains build.properties and plugins.sbt where you can mention plugin related details.
- The “test” contains all the unit test cases.
- The “build.sbt” under the root application folder contains all the third party related dependencies.
The below picture represents the entire folder structure.
In the coming article, we will see how to export the Play application as our favorite IDE “Eclipse” project. Still then, “Stay Hungry” to learn.