This is simple implementation for Moralis Block API using Django and React
-
Install Django and rest framework.
pip install django pip install djangorestframework django-cors-headers
-
Install moralis
pip install moralis
-
On frontend folder install the npm dependencies.
npm install
-
Set up your Moralis API key on
backend/block/.env
. -
Run the Django server on backend with:
python manage.py runserver
-
Run the frontend React server on frontend folder run:
npm start
-
Interact with the application.