Chapter 3. Installation

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (16)

View Page History
{color:#339966}\#jdbc.hibernate.hbm2ddl.auto = update{color}
{color:#339966}\#jdbc.hibernate.show_sql = false{color}
{color:#339966}\#jdbc.url =jdbc:hsqldb:file:c:/hsqldb/dragon{color}
{color:#339966}\#jdbc.url =jdbc:hsqldb:{color}{color:#339966}[file:c:/hsqldb/dragon]{color}

{color:#339966}\###########{color}
{color:#339966}\## A Database repository configuration. All binary files are stored as DB Blobs{color}
repo.type = {color:#0000ff}database{color}
repo.root = {color:#0000ff}null{color}
{color:#339966}\## A Filesystem repository configuration. All binary files are stored in the filesystem{color}
{color:#339966}\#repo.type = filesystem{color}
{color:#339966}\#repo.root = ./test-repository{color}{panel}

!worddavfa1a093611d90f1c128cf742dfdbc7aa.png|height=431,width=291!\\
\\
The H2 Datasource (in memory mode) is the one used by default. You also have a MySQL configuration which is disabled by default.
\\
h1. {color:#003f80}{*}3.3.*{color} {color:#003f80}{*}Accessing{*}{color} {color:#003f80}{*}the{*}{color} {color:#003f80}{*}application{*}{color}

Once deployed, Petals Master can be accessed in your web browser through the address {color:#003f80}[http://\+|http://+]{color}{color:#003f80}{_}{+}host{+}{_}{color}{color:#003f80}+:+{color}{color:#003f80}{_}{+}port{+}{_}{color}{color:#003f80}+/petals-master\-+{color}{version-number}{color:#003f80}/petals-master{color}

If your server configuration has "localhost" as host, 8080 as port, the URL for Petals Master V1.0 is : [http://\+|http://+]{color:#003f80}{_}{+}localhost{+}{_}{color}{color:#003f80}+:+{color}{color:#003f80}{_}{+}8080{+}{_}{color}{color:#003f80}+/petals-master-1.0/petals-master{+}{color}.

!worddav1470979c40c05ae03ae385074aab0004.png|height=343,width=450!\\
You reach the Login page of the application. You can choose to remember your logging information for two weeks. Petals Master is setup with two default users :
• An *administrator* allowed to access to all Petals Master features : Username "*master*" / Password "*master*"
!authentication.png|thumbnail!
\\
• A *simple user* having limited access rights : Username "*user*" / Password "*user*"
You reach the Login page of the application. You can choose to remember your logging information for two weeks. Petals Master is setup with a default user :
An *administrator* allowed to access to all Petals Master features : Username "*master*" / Password "*master*".
\\
You can add/remove users by editing the applicationContext-security.xml file that sits in the same directory as the dragon.properties file ($\{petals-master-root\}/WEB-INF/). You must edit this part of the file :
\\
<authentication-provider>
- \-<password-encoder \-hash="*md5*" \-/>
- \-<user-service>
- \- - \-<user \-name="*master*" \-password="*eb0a191797624dd3a48fa681d3061212*"
- \- - - \-authorities="*ROLE_USER*, -*ROLE_ADMIN*" \-/>
- \- - \-<user \-name="*user*" \-password="*ee11cbb19052e40b07aac0ca060c23ee*"
- \- - - \-authorities="*ROLE_USER*" \-/>
\\
\\
\\
- \-</user-service>
</authentication-provider>
Two roles are available : *ROLE_ADMIN* and *ROLE_USER*. All users must have at least the *ROLE_USER* role. Passwords must be encoded in md5. An online encoder is available at [{color:#003f80}{+}{color}|http://7thspace.com/webmaster_tools/online_md5_encoder.html]{color:#003f80}[http://7thspace.com/webmaster_tools/\+|http://7thspace.com/webmaster_tools/+]{color}
[{color:#003f80}{+}online_md5_encoder.html{+}{color}.|http://7thspace.com/webmaster_tools/online_md5_encoder.html]\\
Once you are successfully logged in, you can see the following screen : !welcome.png|thumbnail!
!worddav57ecf34e76a9ee989288afb4f3f3d0a5.png|height=345,width=448!\\
Please note that in the following screenshots, when you see *a* *field* *with* *a* *yellow* *foreground*, it means that *the* *field is required*.
\\
\\
\\