Skip to content

blockchain-foundry/oracle_server

Repository files navigation

Oracle Server

  1. python3 is required.
  2. Build python virtualenv. (Don't use ./setup_venv.sh now, there are some bugs to be solved.)
  3. Launch virtual env, and install all dependency in requirements.txt. $ pip install -r requirements.txt
  4. Copy and modify ./oracle/.env.default, and store as a new file with this path: ./oracle/.env.
  5. If the built is just for testint, you can just use sqlite rather than MYSQL. Modify DB settings in ./oracle/settings/base.py as below:

DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } }

  1. Get all submodules in this repo.

$ git submodule init

$ git submodule update

  1. Migrate DB and run server.

$ cd <ORACLE_PATH>/oracle

$ ./manage.py migrate

$ ./manage.py runserver 0.0.0.0:(port_num)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published