Wiki

Imprimir Propiedades
Blog_with_users_introduction

Introduction


In this tutorial, we are going to create a web blog in which any user can read posts and add comments to them, and only registered users can create, edit and delete posts.
 
After installing Roma Metaframework, we type the following command to create a new web project:

 

./roma.sh create web blog org.romulus.blog /home/developer/workspace
where blog is the project name, org.romulus.blog is the project structure and /home/developer/workspace is the location of the project folder.
 
Then, we add modules required to implement several aspects:

View aspect is implemented with view-Echo2 module
./roma.sh add view-echo2
 
Persistence aspect is supported by persistence-JPOX module
./roma.sh add persistence-jpox

Users module is used to manage users accounts.
./roma.sh add users
 
And Jetty server module is used to provide an easy way to test the application.
./roma.sh add web-jetty

Roma has already created and Eclipse Project which can be imported to work with it.

1163 Accesos, 0 Ficheros adjuntos 0 Ficheros adjuntos

  • Comentarios