Skip to content

Giacomo-Terragni/DecentralizedHealthcareBackend

 
 

Repository files navigation

LUCE Technical Prototype

How to launch LUCE (Debug purpose)

database

LUCE use PostgresQL to keep user information, just run: docker compose up this command will launch a postgres_db container,you can configure it in Django project settings

Ganache

As ganache-cli has upgrade into a full functional application - Ganache, which brings many useful features for debuging. You can configure it as a HttpProvider

Django server

activate your devlopment environment, and start a Django server; generally, go into the root directory of Django project, luce_django/luce in this case, and run: python manage.py runserver

How to access LUCE

You can access each end-point with http request, or use this app

For http request user

  1. Step 1: register
  2. Step 2: login

Once logged in, you can get a token which is necessary for later operation

  1. Step 3: upload data

Tips

  1. if you encounter the issue:

brownie.exceptions.ContractNotFound: No contract deployed at 0xDa574613C62f6DB9FFE8dCC5a8b079Ba37e29390,

please go to luce_vm/brownie, remove build/deployment folder in the brownie directory, and then run brownie compile

  1. If you got the response:
{
    "error": {
        "code": 400,
        "message": "validation error",
        "status": "ERROR",
        "details": "luce registry was not deployed"
    },
    "data": {}
}

please deploy a LUCERegistry contract in admin/deployRegistry/ endpoint.

About

Thesis Terragni

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 45.9%
  • Solidity 37.3%
  • Python 12.2%
  • Shell 2.4%
  • JavaScript 1.3%
  • HTML 0.8%
  • Other 0.1%