8000 GitHub - michaltev/tictactoe
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

michaltev/tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicTacToe Server API

API

Functions Requset Request Body example URL
Get current game status Get - localhost:3000/game/status
Create a game Post {"user":"dana"} localhost:3000/game/create
Join a game Post {"user":"dana"} localhost:3000/game/join
Make a Move Post {"user":"dana", "x":2, "y":2} localhost:3000/game/move

Description

This is a TicTacToe server!

  • A user can create a new game, or join a game where the second player is missing. 💚
  • The creator of the game is the fist to play :) 💚
  • The board size is 3. 💚

Quick Start

Don't forget to...

npm install

To run the server side in dev mode on port 3000:

npm run dev

To run the server side in prod mode (and compile the ts files to js files) on port 3000:

npm run prod

Have fun 💚

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0