Project web app for online shopping.
--------------------------------------------------------------------------------------------
Phone number: +375(29) 3884624
E-mail: alexeydruzik@inbox.ru
--------------------------------------------------------------------------------------------
On this website you can choice with criteria your goods and put required amount
in cart (in user interface you will see quantity and sum), also you can make order with
relationship many to many. The goods, orders and goods in orders will be store in a
separate table. You can choice your language - English or French. On the separate
page, you will can see properies of goods. After ordering, youcan generate pdf reports.
If you are an administrator, you can view all additional elements, it's realized with
Spring Security. You can navigate on sate pages free.
--------------------------------------------------------------------------------------------
The project was developed using the technologies MAVEN, HIBERNATE, SPRING, MYSQL, APACHE TOMCAT
--------------------------------------------------------------------------------------------
USED VERSIONS
--------------------------------------------------------------------------------------------
Maven: 3.3.9
Hibernate: 4.2.6.Final
Spring: 4.2.6.RELEASE
Spring security: 4.2.5.RELEASE
MYSQL 6.3.6
JDK 1.8.74 x64
Tomcat 8.0.33
JNDI
JUnit, Cobertura
----------------------------------------------------------------------------------------------
INSTALLATION
----------------------------------------------------------------------------------------------
1. MYSQL http://dev.mysql.com/
Database settings you can find on the way /dao/src/main/resources/daoApplication.properties
Change settings:
db.username = root
db.password = root
db.url = jdbc:mysql://localhost:3306/internetshop
2. Change username and password in ExecuteBuild.bat on your username and password for your DB.
3.MAVEN http://maven.apache.org/
Open the file settings.xml in your maven(...\maven3.3.9\conf\settings.xml)
and write inside the tag
server
id TomcatServer id
username root username
password root password
server
4.APACHE TOMCAT http://tomcat.apache.org/
Open the file tomcat-users.xml in your tomcat(...\apache-tomcat-8.0.33\conf\tomcat-users.xml)
and write inside the tag
tomcat-users
role rolename="manager-gui"
role rolename="manager-script"
user username="user" password="user" roles="manager-gui,manager-script"
tomcat-users
5. Check registration of the environment variables
Use command line: write command "set"
Check whether the registered variables:
-CATALINA_HOME
-JAVA_HOME
-M2_HOME
-PATH (TOMCAT,MAVEN,MYSQL,JDK)
Windows 7:
For registration -CATALINA_HOME:
GO My Computer ->Select Properties->Advanced setting->Environment Variables
Under System Variables, click New.
Enter the variable name as CATALINA_HOME.
Enter the variable value as the installation path for the Tomcat.
Click OK.
Set Tomcat Path under system variable
PATH= ..\apache-tomcat 8.0.33\bin
For registration -JAVA_HOME:
You must do the same actions as for -CATALINA_HOME:
the variable name as JAVA_HOME
PATH= C:\Program Files\Java\jdk1.8.74
For registration -M2_HOME:
You must do the same actions as for -CATALINA_HOME:
the variable name as M2_HOME
PATH= ..\apache-maven-3.3.9\bin
6. Create on disc C, folder with name - PvtProject1
7. Download project from GitHub github.com/Alexis-Dk/internet-store, and put his in this folder PvtProject1.
Like here C:\PvtProject1\Online-shopping
8. Run ExecuteBuild.bat in root folder of project.
9. If shell ask you access to replace file, please press 'Y' twice in shell to access change.
10. For greater reliability, please copy the Internet-store.war to the folder 'webapps' on your server.
11. Go to http://localhost:{Your port}/
12. To see cobertura reports, go to root - ..applfolder/web/target/site/cobertura/index
13. Build js files using 'npm install' and 'npm run build'
14. Copy builded js file to 'webapp/js' folder and build jar using 'mvn clean install'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Warning!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
To use JNDI, the original server.xml is not enough. For this, application substitute the original server.xml to own.
The bat-file, automaticly change on your tomcat-server, original file server.xml. This file is required for getting
connections from pull. Please, save your original server.xml before start up bat-file ExecuteBuild.
For correct work whith anather applications, after work with this application, please change again manually
again your saved server.xml.
This tomcat-server differs from the standard server.xml two tags:
<Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="100" maxIdle="30" maxWait="10000" name="jdbc/TrainingDB" password="root" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/internetshop" username="root"/>
<ResourceLink global="jdbc/TrainingDB" name="jdbc/TrainingDB" type="javax.sql.DataSource"/>
Add to context.xml this tag:
<ResourceLink global="jdbc/TrainingDB" name="jdbc/TrainingDB" type="javax.sql.DataSource"/>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Warning!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
---------------------------------------------------------------------------
DEFAULT USER:
login: user
password: user
--------------------
DEFAULT ADMIN
login: admin
password: admin
-----------------------------------------------------------------------------
Contact GitHub API Training Shop Blog About
© 2016 GitHub, Inc. Terms Privacy Security Status Help
Alexis-Dia/Internet-store
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|