Skip to content

ujblockchain/django_hedera

Repository files navigation

https://blockchain.uj.ac.za/static/images/main-logo.png

Demystifying Blockchain Bootcamp April Edition 2024

South Africa-Switzerland Bilateral Research Chair in Blockchain Technology (UJ Blockchain) aims to explore blockchain integrations with real-world applications and development in Agric food.


Setup

Set environment variable for Django Secret Key, Debug, Allowed Host, and Admin Path. Also add configuration for Django Axes and Email with SMTP Host.

Recaptcha Setup

Set google recaptcha public and private key in environment variables. Public and private key can be gotten from https://developers.google.com/recaptcha/. Ensure you use reCAPTCHA v3.

RECAPTCHA_PUBLIC_KEY = '...'
RECAPTCHA_PRIVATE_KEY = '...'
RECAPTCHA_REQUIRED_SCORE = '...'

Install Java

This project uses a python wrapper for the Hedera Java SDk, as such JDK > 11 must be installed. Ensure you add JAVA_HOME to path.

Running Project

Setup
make setup
create Superuser
make superuser
Run Server
make runserver