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
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
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
You can access each end-point with http request, or use this app
- Step 1: register
- Step 2: login
Once logged in, you can get a token which is necessary for later operation
- Step 3: upload data
- if you encounter the issue:
brownie.exceptions.ContractNotFound: No contract deployed at 0xDa574613C62f6DB9FFE8dCC5a8b079Ba37e29390
,
please go to
luce_vm/brownie
, removebuild/deployment
folder in the brownie directory, and then runbrownie compile
- 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.