Skip to content

Swaggeroo/MetaTicTacToe

Repository files navigation

Meta Tic Tac Toe

Rules

Getting Started

Using Docker Compose

  1. Install Docker and Docker Compose
  2. Copy docker-compose.yaml to your project directory
  3. Use docker-compose up to start the server

Using Docker

  1. Install Docker
  2. Pull the image from Docker Hub: docker pull ghcr.io/swaggeroo/meta-tic-tac-toe
  3. Run own mongo instance: docker run -d --name mongo mongo
  4. Run the server: docker run -d --name meta-tic-tac-toe -p 80:3000 --env mongoUrl=mongodb://mongo/metaTicTacToe ghcr.io/swaggeroo/meta-tic-tac-toe

Using Node.js

  1. Install Node.js
  2. Install MongoDB
  3. Clone the repository: git clone https://github.com/Swaggeroo/MetaTicTacToe.git
  4. Install dependencies: npm install
  5. Start the server: npm start
  6. Set environment variables:
    • mongoUrl: The URL of the MongoDB instance

Configuration

Environment Variables

  • mongoUrl: The URL of the MongoDB instance

Optionally, you can set the following environment variables:

Variable Default Value Description
PORT 3000 The port the server listens on (Also change port from docker deployment if in use)
DEBUG Set it to app:* to see debug output
mongoUser Set username for mongodb
mongoPassword Set password for mongodb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages