EGOS Docs
Introduction
EGOS Homev1.0
  1. Docs
  2. Getting Started
  3. Installation

Installation

Previous

System Overview

Next

Quick Start

    Installation

    Set up your EGOS development environment

    2 min read

    Installation

    This guide will help you set up EGOS for development or production use.

    Prerequisites

    Before installing EGOS, ensure you have:

    • Node.js 18.x or later
    • MongoDB 6.x or later
    • Git for version control
    • A Raspberry Pi 4 (for Controller deployment)

    Quick Install

    1. Clone the Repository

    git clone https://github.com/egos-games/egos-cloud.git cd egos-cloud

    2. Install Dependencies

    npm install

    3. Configure Environment

    Copy the example environment file:

    cp .env.example .env.local

    Edit .env.local with your configuration:

    # MongoDB Connection MONGODB_URI=mongodb://localhost:27017/egos # MQTT Configuration NEXT_PUBLIC_MQTT_HOST=localhost NEXT_PUBLIC_MQTT_WS_PORT=9001 # AWS Amplify (optional - for authentication) NEXT_PUBLIC_AMPLIFY_REGION=eu-west-2

    4. Start Development Server

    npm run dev

    The application will be available at http://localhost:3000.

    Production Deployment

    Warning

    For production deployments, ensure you have proper security measures in place including TLS encryption and strong authentication.

    Building for Production

    npm run build npm start

    Docker Deployment

    docker-compose up -d

    Verifying Installation

    After installation, verify everything is working:

    1. Open http://localhost:3000
    2. Check the MQTT broker status in the footer
    3. Navigate to the Studio to create your first game

    Troubleshooting

    Common Issues

    MongoDB Connection Failed

    Ensure MongoDB is running:

    sudo systemctl status mongod

    MQTT Broker Not Starting

    Check if port 9001 is available:

    netstat -an | grep 9001

    Next Steps

    Continue to Quick Start to create your first game.