{"id":16367663,"url":"https://github.com/mmontes11/tendereteonline","last_synced_at":"2025-03-23T02:33:06.474Z","repository":{"id":8960516,"uuid":"10699925","full_name":"mmontes11/TendereteOnline","owner":"mmontes11","description":"A Java EE web application of an Online Shop developed with Hibernate + Spring + Bootstrap + jQuery","archived":false,"fork":false,"pushed_at":"2015-10-30T21:07:58.000Z","size":523,"stargazers_count":18,"open_issues_count":0,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-11T02:50:57.811Z","etag":null,"topics":["bootstrap","hibernate","java","javaee","jquery","mysql","spring"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mmontes11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-14T23:52:11.000Z","updated_at":"2023-06-25T08:06:10.000Z","dependencies_parsed_at":"2022-09-01T13:50:39.111Z","dependency_job_id":null,"html_url":"https://github.com/mmontes11/TendereteOnline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmontes11%2FTendereteOnline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmontes11%2FTendereteOnline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmontes11%2FTendereteOnline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmontes11%2FTendereteOnline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmontes11","download_url":"https://codeload.github.com/mmontes11/TendereteOnline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221842768,"owners_count":16890202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","hibernate","java","javaee","jquery","mysql","spring"],"created_at":"2024-10-11T02:50:33.109Z","updated_at":"2024-10-28T14:46:26.090Z","avatar_url":"https://github.com/mmontes11.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TendereteOnline\n\nEnvironment variables\n---------------------\n\nThis is an excerpt of a \"~/.bash_profile\" file for Unix-like systems. Adapt to\nyour environment.\n\n# J2SE\nexport JAVA_HOME=/opt/jdk1.7.0_05\n# For Mac OS X, use:\nexport JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home\n# For convenience.\nPATH=$JAVA_HOME/bin:$PATH\n\n# Maven\nMAVEN_HOME=/opt/apache-maven-3.0.4\nPATH=$MAVEN_HOME/bin:$PATH\nexport MAVEN_OPTS=\"-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m\"\n\n# MySQL.\nMYSQL_HOME=/opt/mysql-5.5.25a-linux2.6-i686\nPATH=$MYSQL_HOME/bin:$PATH\n\n# Tomcat.\nexport CATALINA_OPTS=$MAVEN_OPTS\n\n# Eclipse.\nPATH=/opt/eclipse:$PATH\n\nIn MS-Windows define the following environment variables by using the control\npanel (System):\n\nJAVA_HOME=c:\\jdk1.7.0_05\nPATH=%JAVA_HOME%\\bin;%PATH%\n\nMAVEN_HOME=c:\\apache-maven-3.0.4\nPATH=%MAVEN_HOME%\\bin;%PATH%\nMAVEN_OPTS=-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m\n\nMYSQL_HOME=c:\\MySQLServer5.5\nPATH=%MYSQL_HOME%\\bin;%PATH%\n\nCATALINA_OPTS=%MAVEN_OPTS%\n\nPATH=c:\\eclipse;%PATH%\n\nBasic installation and usage of MySQL Community Edition\n-------------------------------------------------------\n\n+ Installation of MySQL 5.5.25a on Unix-like operating systems:\n\n  We usually install MySQL as root user and run the server as normal user.\n  As \"root\" user, proceed as follows (example for Linux):\n\n   - Unpack mysql-5.5.25a-linux2.6-i686.tar.gz on some directory\n     (e.g. /usr/local).\n   - chown -R root:root mysql-5.5.25a-linux2.6-i686\n     NOTE: For Mac OS X, use \"root:wheel\" instead of \"root:root\" with \"chmod\".\n   - chmod -R 755 mysql-5.5.25a-linux2.6-i686\n   - Create the symbolic link \"/usr/local/mysql\" pointing to the directory\n     where MySQL is installed:\n     ln -s `pwd`/mysql-5.5.25a-linux2.6-i686 /usr/local/mysql\n\n   - In ubuntu OS, you must install libio1 library\n     sudo apt-get install libaio1\n\n   As normal user, proceed as follows:\n\n   - Create a directory where MySQL will store its databases. For example:\n     /home/user/.MySQLData.\n   - Create $HOME/.my.cnf file with a similar content to the following:\n\n     [mysqld]\n     datadir=/home/user/.MySQLData\n\n     Change the value of \"datadir\" to the directory created previously.\n\n   - cd /usr/local/mysql\n   - scripts/mysql_install_db\n\n     This will create \"mysql\" and \"test\" databases in the directory specified\n     by the previous \"datadir\" option.\n\n+ Installation of MySQL 5.5.25a on MS-Windows operating systems:\n\n   - Double-click on mysql-5.5.25a-winx64.msi. Use default options.\n   - After the installation of MySQL, the MySQL Server Instance Configuration\n     Wizard will run. Use default options but the following ones:\n\n     + Best Support For Multilingualism.\n     + Uncheck \"Install As Windows Service\" and check \"Install Bin Directory\n       In Windows PATH\".\n\nCreate two databases\n--------------------\n\nIn order to minimize changes to pojo-examples default configuration, create two\ndatabases on MySQL with names \"pojo\" and \"pojotest\", and a user with name\n\"pojo\" and password \"pojo\". In the case of a Unix-like operating system, run\nthe following commands as normal user.\n\n+ Start the MySQL server.\n\n  - Unix-like operating systems: mysqld\n  - MS-Windows operating systems: mysqld\n\n- Create two databases with names \"pojo\" and \"pojotest\". \"pojo\" is used to run\n  applications and \"pojotest\" for the Maven test phase.\n\n  mysqladmin -u root create pojo\n  mysqladmin -u root create pojotest\n\n- Create a user with name \"pojo\" and password \"pojo\", and allow her/him to\n  access both databases from local host.\n\n  mysql -u root\n\n  GRANT ALL PRIVILEGES ON pojo.* to pojo@localhost IDENTIFIED BY 'pojo';\n  GRANT ALL PRIVILEGES ON pojotest.* to pojo@localhost IDENTIFIED BY 'pojo';\n\n- Try to access both databases as user \"pojo\" with password \"pojo\".\n\n  mysql -u pojo --password=pojo pojo\n  mysql -u pojo --password=pojo pojotest\n\n- Shutdown the MySQL server.\n\n  mysqladmin -u root shutdown\n\nInitializing the database and building the examples\n---------------------------------------------------\n\n- mvn sql:execute install\n\nInstallation and configuration of Tomcat\n----------------------------------------\n\n- Unpack apache-tomcat-7.0.29.tar.gz.\n\n- Copy the JDBC driver to Tomcat's \"lib\" directory.\n\n  * MySQL JDBC driver:\n    M2_REPO/repository/mysql/mysql-connector-java/5.1.21/mysql-connector-java-5.1.21.jar\n\n    M2_REPO is the location of the local Maven repository (by default,\n    $HOME/.m2 in Unix-like operating systems,\n    C:\\Documents and Settings\\\u003cloginName\u003e\\.m2 in XP and\n    C:\\Users\\\u003cloginName\u003e\\.m2 in Vista/7).\n\n- Define a global DataSource named \"jdbc/pojo-examples-ds\".\n\n  * Add the following lines to conf/server.xml, inside the\n    \"\u003cGlobalNamingResources\u003e\" tag.\n\n    \u003c!-- MySQL --\u003e\n    \u003cResource name=\"jdbc/pojo-examples-ds\"\n              auth=\"Container\"\n              type=\"javax.sql.DataSource\"\n              driverClassName=\"com.mysql.jdbc.Driver\"\n              url=\"jdbc:mysql://localhost/pojo\"\n              username=\"pojo\"\n              password=\"pojo\"\n              maxActive=\"4\"\n              maxIdle=\"2\"\n              maxWait=\"10000\"\n              removeAbandoned=\"true\"\n              removeAbandonedTimeout=\"60\"\n              logAbandoned=\"true\"\n              validationQuery=\"SELECT COUNT(*) FROM PingTable\"/\u003e\n\n  * Add the following lines to conf/context.xml, inside the \u003cContext\u003e tag.\n\n    \u003cResourceLink name=\"jdbc/pojo-examples-ds\" global=\"jdbc/pojo-examples-ds\"\n                  type=\"javax.sql.DataSource\"/\u003e\n\n\nRunning Web appplications\n-------------------------\n\npojo-servjsptutorial, pojo-tapestrytutorial, and pojo-minibank provide Web \napplications. pojo-minibank requires the database server to be running.\n\n- Running with Maven/Jetty.\n\nBelow it is indicated how to run pojo-minibank. Rest of Web applications are\nrun in a similar way.\n\ncd pojo-minibank\nmvn jetty:run\n\nBrowse to http://localhost:9090/pojo-minibank\n\n+ Running with Tomcat.\n\n    * Copy the \".war\" file (e.g. pojo-minibank/target/pojo-minibank.war) to\n      Tomcat's \"webapp\" directory.\n\n    * Start Tomcat:\n      cd \u003c\u003cTomcat home\u003e\u003e/bin\n      startup.sh\n\n    * Browse to http://localhost:8080/pojo-minibank.\n\n    * Shutdown Tomcat:\n      shutdown.sh\n\nConfiguring Eclipse\n-------------------\n\n- \"Preferences\" wizard is available under \"Window\" menu option on Windows and\n   Linux, and \"Eclipse\" menu option under Mac OS X.\n\n- Use Java 1.7:\n  * Go to \"Preferences\u003eJava\u003eCompiler\" and select \"1.7\" for \"Compiler\n    compliance level\".\n  * Go to \"Preferences\u003eJava\u003eInstalled JREs\" and select the JVM 1.7.0.\n\n- Set the default text encoding for Eclipse to UTF-8\n  Go to \"Preferences\u003eGeneral\u003eWorkspace\" and select UTF-8 as the Text\n  File Encoding. This should set the default encoding for the resources in\n  your workspace.\n\n- Set the default text encoding for Java properties files to UTF-8\n  Go to \"Preferences\u003eGeneral\u003eContent Types\u003eText\u003eJava Properties File\",\n  set \"Default encoding\" to \"UTF-8\" and click \"Update\".\n  \n- Set the XML colorer for Tapestry page template files\n  Go to \"Preferences\u003eGeneral\u003eContent Types\" and add the \"*.tml\" file\n  extension to the \"Text / XML\" content type.\n  \n- Install the Subclipse plugin (it provides support for Subversion within\n  Eclipse)\n  Go to \"Help\u003eInstall New Software...\".\n    Use the following site: http://subclipse.tigris.org/update_1.8.x\n    Check all the items, accept the license and finish the installation.\n\t\n  For OSs where JavaHL (JNI) is not available (e.g. Linux OS and Mac OS X):\n    Configuration: Go to \"Preferences\u003eTeam\u003eSVN\u003eSVN interface\" and\n      set \"Client\" to \"SVNKit (Pure Java)\".\n\t\n- Install the Maven SCM handler for Subclipse compliant with Subclipse 1.8.x\t\n  Go to \"Help\u003eInstall New Software...\".\n    Use the following site: http://subclipse.tigris.org/m2eclipse/1.0\n    Check all the items, accept the license and finish the installation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmontes11%2Ftendereteonline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmontes11%2Ftendereteonline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmontes11%2Ftendereteonline/lists"}