Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
Articles_pt
LeftMenu




JSPWiki v2.2.33

[RSS]


Hide Menu

AppFuseQuickStart_pt


This is version 12. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]


AppFuse - guia rápido para começar

AppFuse tem como principal propósito ajudá-lo rapidamente acelerar o começo de sua aplicação web. Aqui estão os passos básicos na criação de um novo projeto com ele.

  1. Instale J2SE 1.4.2+ e ajuste a variável de ambiente JAVA_HOME apontando para seu diretório de instalação.
  2. Download a versão fonte ou faça o checkout do módulo appfuse do CVS (cvs -d :pserver:[email protected]:/cvs co appfuse).
    NOTA: Você pode fazer o download AppFuse 1.8, Ant 1.6.2, Tomcat 5.0.28 e MySQL 4.1.11 (para Windows) usando tudo-em-um instalador. Visualize este README.txt do pacote para mais informações.
  3. Instale Ant 1.6.2+ e ajuste a variável de ambiente ANT_HOME. Instale Tomcat 4.1.x+ (recomendo 5.0.28) e ajuste a variável de embiente CATALINA_HOME apontando para o diretório de instalação do Tomcat. Cheque meu configuração de ambiente de desenvolvimento para obter links a todos estes pacotes e ver onde Eu costumo instalá-los.
  4. Instale MySQL 3.23.x+ (recomendo 4.1.7).
    NOTA: Se você estiver usando MySQL 4.1.7, tenha certeza de usar um character set UTF-8 e um tipo de tabela InnoDB. Veja como.
  5. Configure um servidor SMTP local ou altere o arquivo mail.properties (no diretório web/WEB-INF/classes) e build.properties (no raiz -- para mensagens log4j) apontando para um existente - o padrão é para localhost.
  6. Copie lib/junit3.8.1/junit.jar para $ANT_HOME/lib.
    NOTA: Você pode ver um arquivo ant-junit.jar existente em $ANT_HOME/lib. Este jar não é a biblioteca JUnit, ao contrário é para a tarefa Ant junit a qual usará o junit.jar que você colocar aqui.
  7. Do diretório do appfuse, execute ant new. Você será questionado por um nome de aplicação, nome do banco de dados e nome do pacote(utilizado por sua aplicação). Depois de entrar com estas informações, um diretório contendo sua aplicação será criado no mesmo diretório que o appfuse.
    ATENÇÃO: Alguns valores de aplicação não funcionarão - não use "test", nada que contenha "appfuse" ou qualquer coisa que comece com números. Também, dois traços (-) no nome irá bagunçar as coias.
  8. Navegue para o novo diretório e execute ant setup (ou ant setup-db setup-tomcat deploy) para criar o banco de dados, configurar Tomcat e fazer o deploy de sua aplicação. A configuração do banco de dados somente funcionará se seu usuário root não possuir senha. Você pode mudar isto no arquivo build.properties se necessário. Precisa assistência com a configuração do ant?
  9. If you want to test and make sure everything works, run ant test-all - make sure Tomcat is stopped when you do this. Next, run ant test-reports - there will be a message after it runs telling you how you can view the generated reports.

After you've confirmed your installation using the above steps - take a look at the Tutorials to see how to develop with AppFuse.

Optional Installations

  • If you'd like to use iBATIS as a persistence framework option, view the README.txt in extras/ibatis.
  • If you'd like to use Spring as the web framework, view the README.txt in extras/spring.
  • If you'd like to use WebWork as the web framework, view the README.txt in extras/webwork.
  • If you'd like to use JSF as the web framework, view the README.txt in extras/jsf.
  • If you'd like to use Tapestry as the web framework, view the README.txt in extras/tapestry.
  • If you'd like you can write a script to automate the creation and testing of your project from AppFuse. There are a couple in CVS that I use for testing: spring+ibatis and webwork. Note that using "appfuse" in a real-world project name is a bad idea as it'll find/replace things it shouldn't.
  • If you don't want to install iBATIS, Spring MVC, WebWork, JSF or Tapestry - you should delete their installers in the extras folder before checking your project into source control.

NOTE: These installers will modify the Eclipse classpath, but not the IDEA one. You'll need to modify that manually.



Go to top   More info...   Attach file...
This particular version was published on 06-Nov-2006 13:52:48 MST by Gilbertoca.