# Installation Guide

This guide will walk you through the process of installing JuliaOS and its dependencies.

## Prerequisites

Before installing JuliaOS, ensure you have the following prerequisites installed:

* **Julia** (version 1.8 or later)
* **Node.js** (version 16 or later)
* **Python** (version 3.8 or later)
* **Git**

## Installing Julia

### macOS

Using Homebrew:

```bash
brew install julia
```

Or download the installer from the [official Julia website](https://julialang.org/downloads/).

### Linux

Using package manager (Ubuntu/Debian):

```bash
wget https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.5-linux-x86_64.tar.gz
tar zxvf julia-1.8.5-linux-x86_64.tar.gz
sudo mv julia-1.8.5 /opt/
sudo ln -s /opt/julia-1.8.5/bin/julia /usr/local/bin/julia
```

### Windows

Download the installer from the [official Julia website](https://julialang.org/downloads/) and follow the installation instructions.

## Installing Node.js

### macOS

Using Homebrew:

```bash
brew install node
```

### Linux

Using package manager (Ubuntu/Debian):

```bash
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
```

### Windows

Download the installer from the [official Node.js website](https://nodejs.org/) and follow the installation instructions.

## Installing Python

### macOS

Using Homebrew:

```bash
brew install python
```

### Linux

Using package manager (Ubuntu/Debian):

```bash
sudo apt-get update
sudo apt-get install python3 python3-pip
```

### Windows

Download the installer from the [official Python website](https://www.python.org/downloads/) and follow the installation instructions.

## Installing JuliaOS

### Clone the Repository

```bash
git clone https://github.com/yourusername/JuliaOS.git
cd JuliaOS
```

### Install Julia Dependencies

```bash
julia -e 'using Pkg; Pkg.activate("."); Pkg.instantiate()'
```

### Install Node.js Dependencies

```bash
npm install
```

### Install Python Dependencies

```bash
pip install -e ./packages/python-wrapper
```

## Docker Installation (Alternative)

JuliaOS can also be installed using Docker, which simplifies the setup process.

### Prerequisites

* Docker
* Docker Compose

### Installation

1. Clone the repository:

```bash
git clone https://github.com/yourusername/JuliaOS.git
cd JuliaOS
```

2. Build and start the Docker containers:

```bash
docker-compose up -d
```

This will start all the necessary services, including the Julia backend, the bridge, and the CLI.

## Verifying the Installation

To verify that JuliaOS is installed correctly, run the following command:

```bash
julia -e 'using JuliaOS; println("JuliaOS is installed correctly!")'
```

You should see the message "JuliaOS is installed correctly!" if the installation was successful.

## Next Steps

Now that you have installed JuliaOS, you can proceed to the Quick Start Guide to learn how to use it.
