Skip to main content

πŸš€ Getting Started

Getting Started​

This section covers how to run the application for the first time - from installation to first run.

Requirements​

Before you start installing anything, make sure you have the below installed

  • Git
    • Used to download the code and make contributions.
  • Node.js version 20.0 or higher
    • When installing Node.js, you are recommended to check all checkboxes related to dependencies.
  • Emscripten version 4.0.10 or higher
    • This is used to compile the C++ to WebAssembly.
  • CMake
    • The build system for C++.
  • Python version 3.8 or higher
    • Emscripten requires this for its tooling and scripts.
warning

These all need to be set in your PATH variable and must be accessible in your terminal for Img2Num to run properly.

How to check for and set PATH variables

Check if a tool is in your path​

Open Command Prompt or Powershell by pressing the windows button + cmd/powershell, then run:

git --version
node --version
python --version
cmake --version
emcc -v

If the command prints a version, it’s already in PATH. If it says β€œcommand not found” or similar, you need to add it.

Not in your path?​

For Windows, this link will explain how to add variables to your PATH.

Cloning the repository​

This step will guide you through downloading (cloning) the repository's code into a folder, named Img2Num.

Clone the repository into a folder named Img2Num
# Clone the repository into a folder named `Img2Num`
git clone https://github.com/Ryan-Millard/Img2Num.git

Installing dependencies​

This section will help you install all the required dependencies.

You can choose to only install the dependencies for one portion of the app, but it is recommended that you install the dependencies for both if you want all the functionality.

Install all dependendencies
# Install main app's dependencies
cd Img2Num
npm install

# Install documentation site's dependencies
npm install --prefix ./docs

Running the app for the first time​

This section will help you run both the main application and the documentation site for the first time.

From the project's root, run:

Concurrently run both the Vite development and Docs servers
npm run dev:all