We are a groupe of studends which have gotten the task to develope a bunch of Portlets for Liferay. The Liferay Portlets have to have a specific code quality.
And since non of our groupe has experience, it would be nice if some experts could share there knowlage or post a good tutorial.
How looks an good folder structur of an Portle
several Protlets will have an WebService connection (calling an REST-Interface), how do we Manage them?
Automatedtesting for Portlets?
General Guidelines we should keep in mind and follow?
Best How To :
- A good structure is any structure you are happy with and you find your files :) No, seriously. It depends. There are 2 major build processes you can use for Liferay portlets (at least 2 supported): Ant and Maven. Maven is expecting a given structure of your project. Like the source code has to be located in the folder src.main.java for example. Ant however does not make any assumptions on how you structure your code. So first of all you should decide on which build process you are happy with.
- Depending on what kind of test you are referring to, this can vary from easy up to painfull. For example a simple unit Test with jUnit will be quite easy. Integration testing will be a more complex tasks. GUI Testing can be a pain in the a...
Some more information: If you are planning on doing automated testing, eventually use a Continous Integration Server, I would really recommend to use the combination of:
- Git -> SCM
- Jenkins -> CI Server
- Maven -> Build System
- Nexus -> Maven Repository
Another word of advise: Use the Web/Coding technologies you know. If you have experience with Spring, use it. If you don't, don't use it. Always try to prefer known technologies over unknown. this will save you a lot of time.
I Hope this helps you guys to get a kickoff.