Prerequisites
To begin building your project with Cpp.js, you’ll first need to install a few dependencies:
- Docker
- Node.js version 18 or higher
- CMake version 3.28 or higher (only required for Mobile development)
- Xcode (only required for iOS development)
- Cocoapods (only required for iOS development)
Docker
The Docker image includes all the necessary requirements for both Web and Android applications.
Check the current Docker version with the following command:
docker --version
If you do not have Docker installed in current environment, you can use the following link to install it.
- MacOS
- Linux
- Windows
To download the cpp.js Docker image, use the command below. If you choose not to download it manually, cpp.js will automatically download the image during the first build process.
docker pull bugra9/cpp.js
Node.js
Check the current Node.js version with the following command:
node --version
If you do not have Node.js installed in current environment, or the installed version is too low, you can use the following link to install it.
During iOS development, Xcode checks for Node.js in the system environment. If Node.js is not defined in the system environment, set it using the following command:
ln -s $(which node) /usr/local/bin/node
Cmake [Mobile Only]
Check the current CMake version with the following command:
cmake --version
If you do not have CMake installed in current environment, or the installed version is too low, you can use the following link to install it.
XCode [iOS Only]
iOS development requires Xcode and is only available on macOS.
Cocoapods [iOS Only]
iOS development requires XCode and is only available on macOS.
Check the current Cocoapods version with the following command:
pod --version
If you do not have Cocoapods installed in current environment, you can use the following link to install it.
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install Cocoapods using Homebrew:
brew install cocoapods