Shopizer is a complete java sales management and e-commerce content management software (CMS) built from ground up with performance in mind on a strong technology stack. Shopizer provides essential e-commerce tools for selling online [shoping cart, inventory management, payment and shipping, order management, online invoicing, e-commerce tracking]. Following is a step by step tutorial for using it over Mac OS X. 1. Edit shopizer-1.1.2/sm-core/conf/properties/sm-core-config.properties and set the Tomcat webapps folder path:
#This is the path where you will be dropping your war files core.bin.mediapath=/Library/Tomcat/webapps #This is the absolute path where downloadable files will reside core.download.path=/Library/Tomcat/webapps/media/download
2. Download and copy MySQL driver into the following folders:
/Shopizer-1.1.2-src/schema/lib/drivers/ /Library/Tomcat/lib [ lib folder of Tomcat ]
In this case I’ve used mysql-connector-java-5.0.3-bin.jar file. 3. Login to the MySQL as root. I’ve already created the user shopizer which identified by shopizer.
/usr/local/mysql-5.1.46-osx10.6-x86_64/bin ->./mysql -uroot -pmypassword
Run following commands after login to MySQL:
mysql>CREATE DATABASE SALESMANAGER; mysql>GRANT USAGE, SELECT ON *.* TO shopizer@localhost IDENTIFIED BY 'shopizer' with grant option; mysql>grant all privileges on SALESMANAGER.* to shopizer@localhost; mysql>grant all privileges on SALESMANAGER.* to shopizer@'%'; mysql>GRANT FILE ON *.* TO shopizer@localhost; mysql>GRANT FILE ON *.* TO shopizer@'%'; mysql>FLUSH PRIVILEGES;
4. Edit shopizer-1.1.2/sm-core/conf/properties/system.properties and unmark the #MySQL part:
#MySQL database.driver=com.mysql.jdbc.Driver database.jdbcUrl=jdbc:mysql://localhost:3306/SALESMANAGER database.user=shopizer database.password=shopizer hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
5.Edit shopizer-1.1.2\schema\build.properties and set username db_username and db_password.
#MySQL db_port=3306 db_username=shopizer db_password=shopizer salesmanager_db_name=SALESMANAGER
Go to following path:
Run followings command using terminal:
ant -buildfile shopizer-build.xml -Dproperty=build.properties create.schema.mysql
Now you should see something like this:
~/Projects/Mine/Java/shopizer-1.1.2-src/schema ->ant -buildfile shopizer-build.xml -Dproperty=build.properties create.schema.mysql Buildfile: /Users/amirsedighi/Projects/Mine/Java/shopizer-1.1.2-src/schema/shopizer-build.xml create.schema.mysql: [echo] INTO create.schema.mysql [sql] Executing resource: /Users/amirsedighi/Projects/Mine/Java/shopizer-1.1.2-src/schema/sql/shopizer_schema_mysql.sql [sql] Executing resource: /Users/amirsedighi/Projects/Mine/Java/shopizer-1.1.2-src/schema/sql/data/shopizer_data.sql [sql] Executing resource: /Users/amirsedighi/Projects/Mine/Java/shopizer-1.1.2-src/schema/sql/data/shopizer_merchant_data.sql [sql] Executing resource: /Users/amirsedighi/Projects/Mine/Java/shopizer-1.1.2-src/schema/sql/data/shopizer_shipping_modules.sql [sql] Executing resource: /Users/amirsedighi/Projects/Mine/Java/shopizer-1.1.2-src/schema/sql/data/decotemplates.sql [sql] 2185 of 2185 SQL statements executed successfully BUILD SUCCESSFUL Total time: 12 seconds ~/Projects/Mine/Java/shopizer-1.1.2-src/schema ->
6. Go to /shopizer-1.1.2-src/sm-core folder and run ant to compile project as following.
Do the same for sm-central, sm-shop and media folders as following:
Now three war files generated in shopizer-1.1.2-src/dist. Just copy them into Tomcat webapps folder to deploy.
7. Start tomcat and try what have you done using /shop , /central URLs as the following: Try admin page using admin/password.
Give Java more memory by the following assignment:
export JAVA_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=512m"