Extend functionality of ReactJS tutorial using NodeJS Express
Follow the commands below to install this project and run for the first time:
$ git clone https://github.com/marques-j-robinson/tic-tac-toe-api.git
$ cd tic-tac-toe-api
$ npm i # Install dependencies
$ cp config/default.json config/local.json # Copy config file and add frontendOrigin in "env" and user/password in "db"
$ export NODE_ENV=local
$ npm run dev # Start API
# EXPECTED OUTPUT...
> tic-tac-toe-api@1.0.0 start
> nodemon app.js
[nodemon] 3.0.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node app.js`
WARNING: NODE_ENV value of 'default' is ambiguous.
WARNING: See https://github.com/node-config/node-config/wiki/Strict-Mode
Server Listening on PORT: 5000
Database connected successfully!!
Provides a list of all games.
Creates a single game and returns the id of the newly created game.
Provides the history for a given game by id.
Removes a game and all history by id.
Updates the history for a given game.