Skip to content

Tic Tac Toe Gobbler is a variation of a classic Tic Tac Toe Game (Gobblet Gobblers)

License

Notifications You must be signed in to change notification settings

shubhamwaghe/tic-tac-toe-gobbler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Gobbler (Gobblet Gobblers)

Tic Tac Toe Gobbler is a variation of a classic Tic Tac Toe Game (Gobblet Gobblers) The frontend is implemented in ReactJs - Demo Available below

To deploy a frontend-only React app, use the static-site optimized
▶️ create-react-app-buildpack

Demo Links

With Backend (i.e Sockets)
  1. Render - https://tic-tac-toe-gobbler.onrender.com/
Without Backend (Offline Only) [Internally, no server - Only React frontend]
  1. Netlify - https://tic-tac-toe-gobbler.netlify.app/

Screenshot

Design Points

A combo of two npm projects, the backend server and the frontend UI. So there are two package.json configs and thereforce two places to run npm commands:

  1. Node server: ./package.json
  2. React UI: react-ui/package.json

Includes a minimal Node Cluster implementation to parallelize the single-threaded Node process across the available CPU cores.

Local Development

Because this app is made of two npm projects, there are two places to run npm commands:

  1. Node API server at the root ./
  2. React UI in react-ui/ directory.

Run the API server

In a terminal:

# Initial setup
npm install

# Start the server
npm start

Install new npm packages for Node

npm install package-name --save

Run the React UI

The React app is configured to proxy backend requests to the local Node server. (See "proxy" config)

In a separate terminal from the API server, start the UI:

# Always change directory, first
cd react-ui/

# Initial setup
npm install

# Start the server
npm start

Install new npm packages for React UI

# Always change directory, first
cd react-ui/

npm install package-name --save

Releases

No releases published

Packages

No packages published