Installing environment (You need Java 8 to install):
-
Download Tomcat 9 (Core) by link and unpack it.
-
Download Gradle ver. 3.3 by link.
-
Unpack and set path in the environment variable Path to folder /bin.
-
Download and install PostgreSQL by link.
-
Download and install NodeJS with npm by link.
-
Download or clone project from this repository.
-
In the console, go to the folder with the project and run the command
gradle war
. -
Copy file
PictureGallery.war
from folder /build/libs/ to Tomcat's /webapps/.
For backend testing:
- In the console, go to the folder with the project and run the command
gradle test
.
For frontend testing:
-
In the console, go to the /frontend folder.
-
In the console, run the command
selenium-update
-
In the console, run the command
selenium-start
-
In the console, run the command
test
-
In the console, go to the /frontend folder.
-
In the console, run the command
npm run start
Now you can debug client at http://localhost:3000
Logs save to Tomcat /logs/debug.log
.