# 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
iReversi depends on MongoDB.
- Download
MongoDB Download Center - Cloud
MongoDB Cloud Database Solutions
# 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
Document for iReversi API v2. (Using Swagger)