Enterprise Key Connect SDK
Seamless integration of existing cloud key infrastructure into web3 projects.
Getting Started
note: not published yet!
npm install @energyweb/ekc
API
TODO
Development
# provide env variables
cp .env.template .env
# Build the project
rushx build
#Test the project
rushx test
# Run the linter
rushx lint
Debugging in VSCode and Chrome
# first install 'Debugger for Chrome' extension for Visual Studio Code
# run webpack in watch mode and start dev server
rushx start
# in ekc package root directory create .vscode directory and inside that create launch.json file and add following config into into it
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch EKC Debug",
"internalConsoleOptions": "openOnSessionStart",
"url": "http://localhost:8080/",
"webRoot": "${workspaceFolder}",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack://@energyweb/ekc/./*": "${webRoot}/*",
"webpack://@energyweb/ekc/../../*": "${webRoot}/../../*"
}
}
]
}
## if you don't have chrome, you can change the executable path to e.g. chromium
{
"configurations": [
{
# put this in the "Launch" configuration above
"runtimeExecutable": "/usr/local/bin/chromium"
}
]
}
# press F5 to start debugging session