generated from cheqd/.github
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: Update Readme * feat: Update swagger
- Loading branch information
1 parent
e9333c4
commit 07d6629
Showing
6 changed files
with
66 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,16 +14,55 @@ The purpose of this service is to provide a [Universal Registrar driver](https:/ | |
|
||
- `/create` | ||
- `/update` | ||
- `/deactivate` | ||
- `/create-resource` | ||
- `/api-docs` | ||
|
||
## 🧑💻🛠 Developer Guide | ||
|
||
### Setup | ||
|
||
To build and run in Docker, use the [Dockerfile](Dockerfile) provided. | ||
#### Environment variable configuration | ||
|
||
Environment variables needed for the Registrar are | ||
|
||
1. `FEE_PAYER_TESTNET_MNEMONIC` : The cosmos payer mnemonic for the Cheqd Mainnet | ||
2. `FEE_PAYER_MAINNET_MNEMONIC` : The cosmos payer mnemonic for the Cheqd Tesnet, By default it's the Testnet Faucet | ||
3. `LOCAL_STORE_TTL` (default: `600`): The time in seconds for the registrar to store data in cache | ||
4. `PORT` (default: `3000`): The port number | ||
|
||
|
||
Clone the repository | ||
|
||
```bash | ||
git clone [email protected]:cheqd/did-registrar.git | ||
cd did-registrar | ||
``` | ||
|
||
*** | ||
|
||
### Running a DID Registrar Using Docker | ||
|
||
Build Docker container image using Dockerfile: | ||
|
||
```bash | ||
docker build --target cheqd-did-registrar . --tag did-registrar:local | ||
``` | ||
|
||
Run the Docker container (modify according to your own build tags and other desired parameters): | ||
|
||
```bash | ||
docker run -it did-registrar:local | ||
``` | ||
|
||
*** | ||
|
||
### Running a DID Registrar Locally | ||
|
||
```bash | ||
docker build -t cheqd-did-registrar . | ||
npm install | ||
npm run build | ||
npm start | ||
``` | ||
|
||
## 🐞 Bug reports & 🤔 feature requests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters