GithubHelp home page GithubHelp logo

kids-room's Introduction

KidsRoom

CONTRIBUTORS

LV-193.Java:

LV-211.Java:

PROJECT MANAGERS


To run tests make sure test/java folder is highlighted with green color like on this pic: http://devcolibri.com/cp/wp-content/uploads/2013/03/junit-testing.png

To do so go to Project Structure -> Sources, select "test/java" and mark it as "test" folder. Run testcases by right-clicking on tab -> Run


tomcat7 idea integration

use this link as a manual

pom.xml file is already configured!

on Runner tab set VM Options:

-Xms128m -Xmx8192m -XX:PermSize=128m -XX:MaxPermSize=256m

"Hello, it's kids room" page will be available on http://localhost:8080/home/

To start project you need to:

  1. Download MySql 5.7 on your computer.
  2. Create new database with command: "CREATE DATABASE database_name DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;".
  3. Create file "hibernate.properties" with appropriate code.
  4. Enter properties of your computer for that commands:
    • Set "jdbc.url = jdbc:mysql://localhost:3306/database_name"
    • Set jdbc.username = root (by default "root", check that name on your computer)
    • Set jdbc.password = root (by default "root", check that name on your computer)
  5. Create Tomcat configuration:
    • Edit Configuration
    • Add New Configuration (Alt+Insert)
    • Chose "Maven":
      • Set Name: enter name new configuration (for example "Tomcat")
      • Set Working directory: enter path to project folder (for example "D:/KidsRoom/lv-181java")
      • Set Command line: enter command to run project "tomcat7:run"
    • Now chose button "Ok"
  6. Run project.
  7. Now you can access to "http://localhost:8080/home/" and try project from local host. Good luck!

src/main/resources/properties/properties/hibernate.properties:

jdbc.driverClassName = com.mysql.jdbc.Driver
jdbc.url = jdbc:mysql://localhost:3306/{database}
jdbc.username = {username}
jdbc.password = {password}
useUnicode = yes
characterEncoding = utf8
hibernate.dialect = org.hibernate.dialect.MySQLDialect
hibernate.show_sql = true
hibernate.format_sql = true
hibernate.hbm2ddl.auto = create
hibernate.enable_lazy_load_no_trans = true
hibernate.search.default.directory_provider = ram
hibernate.search.default.indexBase = com.acme.hibernate.CustomDirectoryProvider
hibernate.search.indexing_strategy = event
Login Password
[email protected] user
[email protected] admin
[email protected] manager

Logging

For logging combination of SLF4J and Logback is used. Example of logging usage:

@Component
public class HelloLog {

    // Get logger instance
    private static @Log Logger LOG;

    public void doSomething() {
        try {
            throw new Exception();
        } catch (Exception e) {
            LOG.error("Sample Exception", e);
        }
    }

}

Logger is configured to output to console and file in tomcat directory: /CATALINA_HOME/logs/kids_room.log. For more information consult SLF4J Logger Interface

kids-room's People

Contributors

editedboy avatar nestorsokil avatar hrybs avatar vitalijf avatar vrogulya avatar valerygutor avatar andryspo avatar kononchuk-b avatar petryshakvasyl avatar sviatko avatar litvinchuck avatar krupadmytro avatar levkovych67 avatar merkan3k avatar seliuchenko avatar matsoruslan avatar nazartrynko avatar pitcity avatar dimabush avatar koldovsky avatar tat0 avatar seltsamd avatar sguydye avatar yevhensh avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.