Skip to content

Installation

Michael Warmbier edited this page Jun 28, 2022 · 8 revisions

Package may be found on npm as smite_api_app. Below are instructions for those unfamiliar.

Installing Node

To run this application, you first need to have Nodejs installed. You can install Node by visiting its website or by using the following commands on Linux Operating Systems:

Windows

Visit the Node.js website and download the installer.

Debian Linux

sudo apt install nodejs
sudo apt install npm

Arch Linux

pacman -S nodejs npm

CentOs, Fedora and Red Hat Linux

dnf module list nodejs // list streams
dnf module install nodejs:<stream>

Installing Smite API Application

Run the following commands after having nodejs and npm installed:
Note: It's recommended that you install globally if locally is having issues. Creating a shortcut from the global install to wherever you wish to access to application from will make access easy.

Locally install to your current directory

npm install smite_api_app

Globally Install

npm install -g smite_api_app

Running the application

If you installed the package locally, while in the same directory it was installed in, run on the terminal:

node smite_api_app

If you installed the package globally, you'll need to find the install path. Regardless of where you installed it, you can make it easier to access via a shortcut or an alias on Linux with the following:

alias <alias_name>="node <path>"

For example, if your directory is located at ~/, you may type something like this:

alias sap="node ~/smite_api_app/smite_api_app.js"

Running with npx

If you have npx installed, you can easily run it without installing it by using:

npx smite_api_app

However, you won't be able to create a permanent save directory or login credentials.

Running on Replit

Visit the Replit version to access the application from the browser.
Note: Saved download paths or credentials will not be permanent through Replit unless you fork it yourself. Version may be ahead in updates relative to official version on npm.