# Installation
ItemsAPI was tested only on Ubuntu 18 and Debian. It's packed also in minimalistic Alpine docker so it should work from source on any popular Linux machine
# Download and launch
Source
Docker
Download, compile and launch ItemsAPI. It was tested on fresh Ubuntu 18 machine
sudo apt update
sudo apt-get install libffi-dev python-dev build-essential htop curl git software-properties-common -y
sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev -y
sudo apt-get install lmdb-utils liblmdb-dev -y
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
git clone https://github.com/itemsapi/itemsapi.git
cd itemsapi
npm install
# optional
# creating swap for small servers i.e. DigitalOcean 512 MB RAM
# https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-debian-8
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
PORT=3000 node server.js
# optional - set more RAM limit in Node.JS
# PORT=3000 node --max-old-space-size=6000 server.js