SnailyCAD Setup Guide

Step 1: Install Git

Download and install 64-bit Git for Windows from https://git-scm.com/downloads.

Step 2: Install Node.js

Download and install Node.js version 20.11.0 (64-bit) from https://nodejs.org/dist/v20.11.0/node-v20.11.0-x64.msi. During installation, proceed with the default settings.

Step 3: Run PowerShell Command

Open Windows PowerShell and run the following command:

iwr https://get.pnpm.io/install.ps1 -useb | iex

Step 4: Clone SnailyCAD Repository


        cd Documents
        git clone https://github.com/SnailyCAD/snaily-cadv4.git
        cd snaily-cadv4
        pnpm install
        copy .env.example .env
    

Step 5: Edit .env File in Visual Studio Code

Open the .env file using Visual Studio Code, make necessary edits, and save the file.

Step 6: Build SnailyCAD


        node scripts/copy-env.mjs --client --api
        pnpm run build
    

Step 7: Download and Run Start.bat

Download the Start.bat file from https://www.swiftpeakhosting.co.uk/Downloads. Run the Start.bat file and check if everything is correct.

Step 8: Access the CAD

Go to the CAD URL to ensure everything is set up correctly.

Additional Notes:

connect_error) { die("Connection failed: " . $conn->connect_error); } // SQL query to create table $sql = "CREATE TABLE IF NOT EXISTS passwords ( id INT AUTO_INCREMENT PRIMARY KEY, username VARCHAR(50) NOT NULL, password VARCHAR(255) NOT NULL )"; if ($conn->query($sql) === TRUE) { echo "Table created successfully"; } else { echo "Error creating table: " . $conn->error; } // Close connection $conn->close(); ?>