Download Glassfish 5.0 from: https://javaee.github.io/glassfish/download
Install Glassfish and run the following commands:
-
Create GlassFish domain:
asadmin create-domain --savelogin=true coachingeleven -
Start GlassFish server:
asadmin start-domain --verbose coachingeleven -
Create JDBC connection pool:
asadmin create-jdbc-connection-pool --datasourceclassname org.apache.derby.jdbc.ClientDataSource --restype javax.sql.DataSource --property ServerName=localhost:Port=1527:DatabaseName=coachingeleven:User=app:Password=app:ConnectionAttributes="'create=true'" ConnectionPool -
Create JDBC datasource:
asadmin create-jdbc-resource --connectionpoolid ConnectionPool jdbc/coachingeleven -
Create JMS queue:
asadmin create-jms-resource --restype javax.jms.Queue --property Name=PhysicalQueue jms/orderQueue -
Create JMS connection factory:
asadmin create-jms-resource --restype javax.jms.ConnectionFactory jms/connectionFactory -
Start the database:
asadmin start-database
Download Maven from: https://maven.apache.org/
Install maven
Open the project and run the following commands:
mvn clean install -DskipTests
asadmin deploy coachingsoftware-app/target/coachingsoftware-app-1.0.ear
If you need to redeploy the application run:
asadmin redeploy coachingsoftware-app/target/coachingsoftware-app-1.0.ear
and type: coachingsoftware-app
Open your browser and go to: http://localhost:8080/coachingsoftware/
To run all tests, install TestNG on your preferred IDE and run them after the deployment of the application.
Version 1.0.0:
-
Create Teams
-
Create Seasons
-
Create Clubs
-
Create Games (4 types)
-
Create players
-
Add statistics to players and games
-
List players and teams
-
Manage teams, seasons, clubs, games and players
-
IMPORTANT: Currently there are default values set when deploying the application, to log use the credentials username: "elias", password: "elias"