swarmcity_installer
v0.1.11
Published
Swarmcity installer
Downloads
17
Readme
Swarm City Installer
Introduction
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.
Pre-requisites
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
Install dependencies
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.
Installation
$ npm install -g swarmcity_installer
Initialization
$ swarmcity init
$ swarmcity build
Start
$ swarmcity start
Stop
$ swarmcity stop
Status
$ swarmcity ps
Logs
# All
$ swarmcity logs
# Chain
$ swarmcity logs chain
# API
$ swarmcity logs api
# Store
$ swarmcity logs store