An Open Source Organization!

Free Chat

Build and Deploy To EzyFox Server

1. Clone EzyFox Server Examples Repo

2. Import freechat/server to IDE (i.e Eclipse)

3. Download the EzyFox Standard Edition

4. Unzip it, let’s say in Applications/

5. Build freechat with maven

5.1 Build freechat module:

– Goals: clean install

5.2 Build freechat-common module:

– Goals: clean install
– Profiles: export
– Environment: EZYFOX_SERVER_HOME = path_to_ezyfox_server

5.3 Build freechat-plugin module:

– Goals: clean install
– Profiles: export
– Environment: EZYFOX_SERVER_HOME = path_to_ezyfox_server

5.4 Build freechat-api module:

– Goals: clean install
– Profiles: export
– Environment: EZYFOX_SERVER_HOME = path_to_ezyfox_server

5.5 Build freechat-entry module:

– Goals: clean install
– Profiles: export
– Environment: EZYFOX_SERVER_HOME = path_to_ezyfox_server

6. Copy file: freechat/settings/freechat-zone-settings.xml to ezyfox-server/settings/zones folder

7. Add this source code to zones tag of ezyfox-server/settings/ezy-settings.xml file:


<zone>
    <name>freechat</name>
    <config-file>freechat-zone-settings.xml</config-file>
    <active>true</active>
</zone>

8. After build and setup we have:

ezyfox-server/
  +--settings/
  |  +--zones/
  |  |  +--freechat-zone-settings.xml
  |  +--ezy-settings.xml
  +--plugins/
  |  +--freechat-plugin/
  |  |  +--freechat-plugin-1.0.0.jar
  |  |  +--config/
  |  |    +--hazelcast.xml
  |  |    +--mongo_config.properties
  |  |    +--config.properties
  +--common/
  |  +--freechat-common-1.0.0.jar
  +--apps/
  |  +--entries/
  |  |  +--freechat/
  |  |    +--config/
  |  |    |  +--questions.txt
  |  |    |  +--config.properties
  |  |    +--freechat-entry-1.0.0.jar
  |  +--common/
  |    +--freechat-api-1.0.0.jar
Test Free Chat

9. Install MongoDB and setup

port=27017
database=freechat
username=root
password=123456

10. Start the EzyFox Server:

# On Windows, execute:
console.bat

# On other operating systems, execute:
./console.sh

11. In file freechat/reactjs/src/socket/SocketProxy.js change 2 lines of connect function to


// let url = "wss://ws.tvd12.com/ws";
let url = "ws://localhost:2208/ws";

12. Install npm

13. Move to freechat/reactjs and execute commands:


npm install
npm start

14. After run the commands, we get the login page.

15. Enter your username and click Login. Enjoy!

Share: