Run a Local Testnet With Docker
WARNING
This section is no longer recommended for deploying on Phala. To build and deploy securely and efficiently, please use the fully managed Phala Cloud platform instead. Check out the doc on how to get started.
Run a local testnet with docker
support. All you need to do to get a local testnet started is run:
Running the local testnet may return an error if port 8000
is already in use.
npm run dev
Make a Request to Your Local Build
# GET request
curl http://127.0.0.1:8000/local
# GET request with URL queries
curl http://127.0.0.1:8000/local?query1=one&query2=two
# POST request
curl http://127.0.0.1:8000/local -X POST -H 'content-type: application/json' -d '{"foo": "bar"}'
Add Secrets to Your Local Build
curl http://127.0.0.1:8000/vaults -H 'Content-Type: application/json' -d '{"cid": "local", "data": {"secretKey":"secretValue"}}'
Check The Logs of Your Local Build
curl 'http://127.0.0.1:8000/logs/all/local'
Last updated
Was this helpful?