Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 827 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 827 Bytes

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)