- Clone this repository
$ git clone https://github.com/dico-app/sd-2-demo- Install dependencies
$ yarn install # or npm install- Start dev server
$ yarn dev # or npm run devInstall Dico easily using npm:
$ npm install --global @dico/cli-sdLog into the CLI to use the command lines:
$ dico login 81b637d8fcd2c6da6359e6963113a1170de795e4b725b84d1e0b4cfd9ec58ce9Init Dico in your project with the following command. This will create a file dico.config.jsonc to manage your keys:
$ dico initYou can now create your first keys and collections in the dico.config.jsonc file:
{
"myFirstCollection": {
"myFirstKey": "string"
}
}Use the Dico keys you just created directly in your code:
<div>{{ $dico.myFirstCollection.myFirstKey }}</div>Push all your created keys to Dico and click the link to navigate directly to the merge request on the website:
$ dico push