Skip to content

ireversi/ireversi

Repository files navigation

iReversi

CircleCI (develop branch) node Tested with Jest Coveralls github License: MIT

Play

iReversi

Develop

# Install dependencies
$ npm install # Or yarn

# Develop iReversi
$ npm run dev # Or yarn dev

# Client origin
#   http://localhost:3000
# API server origin
#   http://localhost:10000

# Test JavaScript files
$ npm test # Or yarn test

Database

iReversi depends on MongoDB.

Environment Variables

# Set `baseURL` for axios
# Default: http://localhost:10000/api
AXIOS_BASE

# Test ignore patterns
# Default: []
JEST_IGNORE

# MongoDB URI
# Default: mongodb://localhost:27017/ireversi
MONGO_URI

# API server port
# Default: 10000
PORT

Example of a .env file. (Using dotenv)

# .env
AXIOS_BASE=http://localhost:3025/api
JEST_IGNORE=<rootDir>.*fileOrDirectoryName
MONGO_URI=mongodb://your.mongodb.server:27017/ireversi
PORT=3025

API documents

Document for iReversi API v1. (Using Swagger)