8000 GitHub - baygeldin/tic-tac-toe: Test assignment for a JavaScript developer job (React, Redux, Webpack, Karma, Mocha, Chai, Sinon, Enzyme, CSS Modules, Koa, WebSockets & WebRTC).
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Test assignment for a JavaScript developer job (React, Redux, Webpack, Karma, Mocha, Chai, Sinon, Enzyme, CSS Modules, Koa, WebSockets & WebRTC).

License

Notifications You must be signed in to change notification settings

baygeldin/tic-tac-toe

Repository files navigation

tic-tac-toe Build Status

This is a test assignment for a JavaScript developer job. It is a simple tic-tac-toe game with WebSockets and WebRTC chats written in JavaScript using React and Node.js.

Screenshots

menu game

Requirements

  • Node.js >= 7.6.0
  • Chrome or Firefox for WebRTC video chat

Running tests

$ npm install
$ npm test

Running on localhost

$ npm install
$ npm watch

This will start nodemon and webpack-dev-server (with hot reloading). Visit http://localhost:3000 (or provide another port with PORT environment variable). Note: WebRTC video chat will work only on localhost in Chrome. If you want to access the server from another computer in your subnetwork you will have to either configure HTTPS or start a reverse HTTP proxy like so (nginx configuration):

server {
  listen 3000;
  server_name localhost;

  location / {
    proxy_pass http://192.168.0.2:3000;
  }

  location /socket.io/ {
    proxy_pass http://192.168.0.2:3000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
  }
}
    
server {
  listen 9000;
  server_name localhost;

  location / {
    proxy_pass http://192.168.0.2:9000;
  }

  location /sockjs-node/ {
    proxy_pass http://192.168.0.2:9000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
  }
}

About

Test assignment for a JavaScript developer job (React, Redux, Webpack, Karma, Mocha, Chai, Sinon, Enzyme, CSS Modules, Koa, WebSockets & WebRTC).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0