# Installation

# Docker

# Prerequisites

Before you can set up your Self Hosted instance of Statch, ensure that you have the following software installed on your machine:

# Installation Steps

Follow these steps to install and run Statch using Docker:

  1. Clone the Statch repository

    git clone https://github.com/Half-Square/Statch.git
  2. Navigate to the cloned repository

    cd Statch
  3. Create a .env file in the root directory with the required environment variables. You can use the provided .env.example as a template

    cp .env.example .env

Modify the .env file to set your desired configurations.

  1. Start the Statch application using Docker Compose

    docker-compose up -d

This command will download and build the necessary Docker images and start the Statch application in the background.

  1. Access Statch in your web browser

Open your web browser and navigate to your url to access the Statch web application. You should see the Statch interface, and you can begin using it.

  1. To stop the Statch containers when you're done

    docker-compose down

# Self Hosted


# Prerequisites

To get started with the Statch, you'll need to have the following software installed on your machine:

# Installation

  1. Clone the repo

    git clone https://github.com/Half-Square/Statch.git
  2. Install the dependencies for Front

    cd 01_SRC
    cd 01_Client
    npm install # or yarn install
  3. Install the dependencies for Back

    cd 01_SRC
    cd 01_Server
    npm install # or yarn install

# Build project

  1. Build server

    cd 01_SRC
    cd 02_Server
    npm run build # or yarn 
  2. Build front

    cd 01_SRC
    cd 01_Client
    npm run build # or yarn 
  3. Build front into server

    cd 01_SRC
    cd 02_Server
    npm run build-front # or yarn 
  4. Build both into 02_Server/dist

    cd 01_SRC
    cd 02_Server
    npm run build-full # or yarn