Giter Club home page Giter Club logo

ezyfox-examples's Introduction

#EzyFox Demo

#Requirements

1. [Java 8] (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
2. [Eclipse] (https://eclipse.org/downloads/) (support Maven)
3. [Lombok] (https://projectlombok.org/)
4. [MySQL] (https://www.mysql.com/)
5. [SmartFox] (http://www.smartfoxserver.com/)

#Setup

1. Import projects to eclipse

Select: File -> Import -> Existing Maven Projects -> <Select Maven Pom File> -> Finish

2. Create MySQL Table

  • Create a database
  • Create table video_poker_user, example:
CREATE TABLE `video_poker_user` (
  `id` int(11) NOT NULL,
  `username` varchar(45) COLLATE utf8_unicode_ci NOT NULL,
  `money` bigint(10) DEFAULT '200000',
  `last_login_ip` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL,
  `last_login` datetime DEFAULT NULL,
  `last_logout` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `username_UNIQUE` (`username`),
  UNIQUE KEY `UK_37akto6lql6u9b3jx9en09u8g` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

3. Configure

In ezyfox-videopoker-server-example project:

  • Open file src/main/resources/videopoker/hibernate_mysql.properties and modify three lines (if need):
# modify database name (test)
hibernate.connection.url=jdbc:mysql://localhost/test?useSSL=false&useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC

# modify db's user name
hibernate.connection.username=root

# modify db's user password
hibernate.connection.password=123
  • Open file pom.xml and modify <deploy.path>/Applications/SmartFoxServer_2X/SFS2X/extensions</deploy.path> with your smarfox extensions directory path

#Run

  • With ezyfox-videopoker-server-example project:

Run maven with goals: clean assembly:directory install

  • Start/Restart smartfox server

  • With ezyfox-videopoker-client-example project:

Run file EzyFoxVideoPokerClientApp.java with java application

ezyfox-examples's People

Contributors

tvd12 avatar

Watchers

 avatar  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.