Skip to content

oleg96/PictureGallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Picture Gallery

Tutorial how to install the project

Installing environment (You need Java 8 to install):

  1. Download Tomcat 9 (Core) by link and unpack it.

  2. Download Gradle ver. 3.3 by link.

  3. Unpack and set path in the environment variable Path to folder /bin.

  4. Download and install PostgreSQL by link.

  5. Download and install NodeJS with npm by link.

Building project

  1. Download or clone project from this repository.

  2. In the console, go to the folder with the project and run the command gradle war.

  3. Copy file PictureGallery.war from folder /build/libs/ to Tomcat's /webapps/.

Testing

For backend testing:

  1. In the console, go to the folder with the project and run the command gradle test.

For frontend testing:

  1. In the console, go to the /frontend folder.

  2. In the console, run the command selenium-update

  3. In the console, run the command selenium-start

  4. In the console, run the command test

Client debugging

  1. In the console, go to the /frontend folder.

  2. In the console, run the command npm run start

Now you can debug client at http://localhost:3000

Logging

Logs save to Tomcat /logs/debug.log.