Before you start writing a SCORE, you need to install the T-Bears. T-Bears provides the followings;
- Essential libraries for SCORE development,
- Local emulated node environment,
- CLI commands for deploying a SCORE and invoking the SCORE functions,
- SCORE test framework
For the details of T-Bears, please go to T-Bears Overview
Because SCORE is written in Python, any IDE that supports python can be used for the SCORE development. In this document, we will explain how to set up and initialize a SCORE project in PyCharm.
We assume that you are familiar with Python development.
Currently (as of 2019. May), T-Bears only works on Python 3.6. When you set the base interpreter, make sure you are using Python 3.6.
- If you are using PyCharm Professional, you can configure T-Bears Docker as a remote interpreter.
Reference: T-Bears Installation
On macOS (Homebrew)
# install develop tools $ brew install leveldb $ brew install autoconf automake libtool pkg-config # install RabbitMQ and start service $ brew install rabbitmq $ brew services start rabbitmq
On Linux (apt-get)
# Install levelDB $ sudo apt-get install libleveldb1 libleveldb-dev # Install libSecp256k $ sudo apt-get install libsecp256k1-dev # install RabbitMQ and start service $ sudo apt-get install rabbitmq-server
pip install tbears
After finishing installation, you can check the T-Bears version using
tbears -v command.
You can create a SCORE project using T-Bears CLI command
tbears init score_w_pycharm ScoreWithPycharm
New SCORE project has been successfully created. Select the main class file and start writing code on PyCharm.
Updated about a year ago