Wiki

Imprimir Propiedades
Bookshop_introduction

In this tutorial, we are going to create a bookshop application. This bookshop will allow clients to pick available books or magazines out of an electronic bookshop, add them to a shopping cart, and check out to buy the selected products.

Also, the warehouse stock will be managed by two types of users: buyers and warehouse employees. The buyers will set up orders to populate the warehouse with books. After orders are received, the warehouse employees will check that the received books do not have any issue and in that case will accept the products. After orders are accepted, books will be included in the warehouse and be available for clients to buy them.
 
After installing Roma Metaframework, we type the following command to create a new web project:

$ roma create web bookshop example.bookshop /home/developer/workspace

where bookshop is the project name, example.bookshop is the project structure and /home/developer/workspace is the location of the project folder.

Then, modules required to implement several aspects are added.

View and session aspects are implemented by view-Echo2 module:
$ roma add view-echo2
 
Persistence aspect is supported by persistence-JPOX module:
$ roma add persistence-jpox

Users module is used to manage user accounts:
$ roma add users
 
And Jetty server module is used to provide an easy way to test the application:
$ roma add web-jetty

Roma has already created and Eclipse Project which can be imported.

 

1043 Accesos, 0 Ficheros adjuntos 0 Ficheros adjuntos

  • Comentarios