P6 - DA JAVA Openclassroom - A community site around climbing
You can get this project either by downloading it in ZIP file or cloning it.
To clone it, go to the folder of your choice in command line and use the following command :
$ git clone https://github.com/D4RT4GNaN/VirtualClimbing.git
See deployment for notes on how to deploy the project on a live system.
You need to install :
- Apache Tomcat version 9.X preferably
- PostgreSQL, the version 9.6.12 is used for this project, but you can use the version you like! For install on mac you can follow this tutorial (sorry it's in french)
- An IDE like IntelliJ IDEA Ultimate or Eclipse JEE
To start with this project :
- Open it in IDE and setup a tomcat server, if it has not already been done.
- In IDE, open /src/main/webapp/META-INF/context.xml and change data with your connection information to the database.
- If you want, a demo data set is available in the folder. There are SQL scripts for creating tables and filling them. Just open the request tool of PgAdmin and open the script create_virtualclimbing_db.sql first and then open the scripts create_data_example.sql later.
To deploy the project on Tomcat server, you can just running the project into the IDE. You can also manually deploy the project.
Start by cleaning package (optional but advisor)
$ mvn clean
Continu by packaging the project
$ mvn package
Put the war which has just been created, into apache-tomcat-X.X.XX/webapps. And finally, launch the tomcat server with the command
$ sh startup.sh
You can found the script into the bin folder of the tomcat server
The site is normally accessible at http://localhost:8080/virtualclimbing-webapp/
- Maven - Dependency Management and Multi-module Management
- Spring - Used to manage the backend service like DAO and Manager
- Struts 2 - Used to manage the frontend service with actions class and XML file
I use Git for versioning.
- Maxime Blaise - D4RT4GNaN