Skip to content

ratkosolar/Apollo-GraphQL-Express-Multiplayer-Chess-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online Multiplayer Chess Game Server - Node.js, Express, Apollo GraphQL

Online multiplayer chess game server built with Node.js, Express and Apollo GraphQL. Feel free to checkout the client side source code too.

Installation

1. Install node_modules

npm install

2. Setup MongoDB and .env file

In order to run server, you have to setup a mongodb and provide a login url through .env Create .env file in root directory:

touch .env

Add the following environemnt variables to .env:

DATABASE_URL=[MongoDB url]
SECRET=[JWT token secret]

3. Run the server

npm run dev