The process is basically the following:
Install nodejs and yarn
Clone and run all parts of BitcartCC
Manual installation is NOT recommended in production. It should be only used for learning purpose.
Instead you should use the docker deployment.
The docker deployment will provide you easy update system and make sure that all moving parts are wired correctly without any technical knowledge. It will also setup HTTPS for you.
This steps have been done on ubuntu 18.04, adapt for your own install.
Usually it might have already been installed, but we also need pip3 and dev packages, so:
sudo apt install python3 python3-pip python3-dev
sudo apt install nodejscurl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.listsudo apt remove cmdtestsudo apt update && sudo apt install yarn
REPLACEME with your new postgres password.
sudo apt install postgresql postgresql-contribsudo -u postgres createdb bitcartsudo -u postgres psql -U postgres -d postgres -c "alter user postgres with password 'REPLACEME';"
sudo apt install redis-server
git clone https://github.com/bitcartcc/bitcartcd bitcartsudo pip3 install -r requirements.txtsudo pip3 install -r requirements/production.txtsudo pip3 install -r requirements/daemons/btc.txt
For any other daemon(coin) you want to use, run:
sudo pip3 install -r requirements/daemons/coin_name.txt
Where coin_name is coin code(btc, ltc, etc.).
Create a file
conf/.env It contains all the settings. For now, we just need to set database password and enabled cryptos.
# Replace REPLACEME with your database password# specify used cryptocurrencies with BITCART_CRYPTOScat > conf/.env << EOFDB_PASSWORD=REPLACEMEBITCART_CRYPTOS=btc,ltcEOF
Apply database migrations:
alembic upgrade head
git clone https://github.com/bitcartcc/bitcart-admincd bitcart-adminyarnyarn build
git clone https://github.com/bitcartcc/bitcart-storecd bitcart-storeyarnyarn build
For any other coin, do the similar procedure:
gunicorn -c gunicorn.conf.py main:app
Start background worker:
NUXT_PORT=4000 yarn start
Your BitcartCC API will run on port 8000, daemons on ports 5000-500X, admin panel on 3000, store on 4000.
Note: it is recommended to use docker deployment for easy upgrades.
To upgrade manually, follow the following steps:
Merchants API, workers, daemons, Admin panel and Store should be stopped
For every BitcartCC component directory (Merchants API, Admin Panel, Store).
sudo pip3 install -r requirements.txtsudo pip3 install -r requirements/production.txtsudo pip3 install -r requirements/daemons/btc.txt
In BitcartCC core(daemons) & Merchants API directory, run:
alembic upgrade head
For BitcartCC Admin Panel and Store, run:
Follow instructions here