Skip to content

tommylusun/word-chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

word-chain

A simple word matching game, where any number of users can join and play. This project was started as a learning experience to implement GraphQL.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

Node.JS

Run client and server with hot reload

Install and start server:

cd server
npm install
npm run dev

Install and start React client:

cd frontend
npm install
npm start

Make sure the client is pointing to the correct hostname/port of the server (default is localhost:4000) To update it, open file /frontend/src/index.js:

if (process.env.NODE_ENV==='development'){
  httpURI = 'http://localhost:4000/graphql';  # update this based on where your server is
  wsURI = 'ws://localhost:4000/graphql';  # update this based on where your server is
}

Deployment

Deploying on production:

In root directory, run:

npm run heroku-postbuild

This will build the frontend React client into static assets, and can be served directly from the server.

Then, you only need to start the server: In root directory, run:

npm start

Built With

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A simple word matching game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published