The installer will allow Swarm City to be installed on any platform via the command npm install SwarmCity
The user will be prompted to answer a number of questions leading to a fully working version of the project whether it be locally for development, or general use or to be deployed on the server for production or testing.
-
nodejs
Install nodejs v6.X.X LTS version.
-
npm
Make sure you have installed latest npm. You can run
sudo npm install -g npm
. -
git
Install git commandline tool.
(UBUNTU)
sudo apt-get install build-essential
-
docker
Install docker. The community edition (docker-ce) will work. In Linux make sure you grant permissions to the current user to use docker by adding current user to docker group,
sudo usermod -aG docker $USER
. Once you update the users group, exit from the current terminal and open a new one to make effect. -
docker-compose
Install docker-compose
Note:- Make sure you can run git
, docker ps
, docker-compose
without any issue and without sudo command.
$ npm install -g swarmcity_installer
$ swarmcity init
$ swarmcity build
$ swarmcity start
$ swarmcity stop
$ swarmcity ps
# All
$ swarmcity logs
# Chain
$ swarmcity logs chain
# API
$ swarmcity logs api
# Store
$ swarmcity logs store