Your cart
  • IMG
    {{cart_item.name}}
    {{cart_item.variation_attribute_name}}: {{cart_item.variation_attribute_label}}
    {{cart_item.item_unit}}: {{ setCurrency(cart_item.price)}}
    {{ setCurrency(cart_item.price*cart_item.quantity)}}
    Invalid quantity more than stock
Total :
{{setCurrency(cart.sub_total)}}

There is no item in the cart. If you want to buy, Please click here.

Step 2: Grails Directory Structure

Complete Application using Grails 3

Created by :
Grails
tutorial
Programming, Software and application
1090
2020-10-14 16:12:27

To develop in framework, framework folder structure is very impotent because without understanding folder structure of a framework you cannot write code properly. After completing install, when you open the project folder and you will see the following folder structure.

·       gradle

·       build

·       grails-app - top level directory for Groovy sources

o   conf - Configuration sources

o   controllers - Web controllers - The C in MVC.

o   domain - The application domain.

o   i18n - Support for internationalization (i18n).

o   services - The service layer.

o   taglib - Tag libraries.

o   utils - Grails specific utilities.

o   views - Groovy Server Pages or JSON Views - The V in MVC.

·       scripts - Code generation scripts.

·       src/main/groovy - Supporting sources

·       src/test/groovy - Unit and integration tests.

  In this directory, grails-app folder is development folder.  For details please see http://docs.grails.org/latest/guide/gettingStarted.html#conventionOverConfiguration


At now we will change default page which is seen after browsing http://localhost:8090 URL. For this, we need to change default view file which location is views under main app folder grails-app. So we need to update page with bellow content

<!doctype html>

<html>

<head>

    <meta name="layout" content="main"/>

    <title>Welcome to Grails</title>



    <asset:link rel="icon" href="favicon.ico" type="image/x-ico" />

</head>

<body>

    <h1>Hello Grails World</h1>



</body>

</html>
 

After changing, browse and you will see "Hello World" and browser title bar will show "Complete Application using grails 3.x"