/xo123

XO game

Primary LanguageJavaScript

xo123 cross-platform app on React

Running Node Express Web Service (Back-End of the app with web-sockets)

Make sure you have Node.js.

$ git clone https://github.com/MikhailSemichev/xo123.git
$ cd xo123
$ npm install
$ npm start

Service will now be running on http://localhost:3333/.

Running React Front-End Application

$ cd ReactApp
$ npm install
$ npm start

Web-site will now be running on http://localhost:3000/. It communicates with Node Express Web Service http://localhost:3333/ via web-sockets.

Deploy on hosting (Heroku)

How to deploy NodeJS on Heroku Tutorial

$ npm run build_h
  commit_and_push_you_code_to_git_repository

Running Mobile Application using Cordova

Install Cordova https://cordova.apache.org/docs/ru/latest/guide/cli/

$ cd MobileApp
$ npm install -g cordova

Install Android SDK (and/or iOS SDK). https://developer.android.com/studio/index.html

Install JDK (Java Development Kit)http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Install platforms:

$ cordova platform add browser
$ cordova platform add android

Run in Android emulator (as example):

$ cordova run android

Do not forget to run "$ npm run build" or "$ npm run build_h" to make sure that ReactApp/build folder copied to MobileApp/www folder

Electron Application

Install Electron:

$ cd ElectronApp
$ npm install -g electron
$ npm install
$ npm start

Do not forget to run "$ npm run build" or "$ npm run build_h" to make sure that ReactApp/build folder copied to ElectronApp/www folder

Documentation

For more information on technologies: