{"id":28229450,"url":"https://github.com/contreau/darqnet-cdb-demo","last_synced_at":"2026-02-17T06:01:39.961Z","repository":{"id":221663490,"uuid":"749661940","full_name":"contreau/darqnet-cdb-demo","owner":"contreau","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-09T04:48:13.000Z","size":1764,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T12:17:49.902Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/contreau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-29T06:17:08.000Z","updated_at":"2024-07-09T04:48:17.000Z","dependencies_parsed_at":"2024-03-27T20:33:36.066Z","dependency_job_id":"87f508b5-c5dd-4ee3-878f-7d7367e30be2","html_url":"https://github.com/contreau/darqnet-cdb-demo","commit_stats":null,"previous_names":["zendev-2/w3modal-dnet-demo","contreau/w3modal-dnet-demo","contreau/dnet-w3m-demo","contreau/darqnet-cdb-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/contreau/darqnet-cdb-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contreau%2Fdarqnet-cdb-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contreau%2Fdarqnet-cdb-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contreau%2Fdarqnet-cdb-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contreau%2Fdarqnet-cdb-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/contreau","download_url":"https://codeload.github.com/contreau/darqnet-cdb-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contreau%2Fdarqnet-cdb-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29535934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T05:00:25.817Z","status":"ssl_error","status_checked_at":"2026-02-17T04:57:16.126Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-18T16:10:26.525Z","updated_at":"2026-02-17T06:01:39.930Z","avatar_url":"https://github.com/contreau.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Darqnet x ComposeDB Demo\n\nBe sure to follow these instructions _exactly_ as written to ensure proper configuration so you can play around with the web app locally. It's assumed that you already have the ComposeDB CLI installed on your system.\n\nFor convenience and less headache, there are a few shell scripts that you'll execute with `npm run` to set up the Ceramic Daemon and create the GraphQL composites with ComposeDB.\n\n## Initial Setup\n\n1. Download the code from this repository and run `npm install`.\n2. Create your Private Key: run `composedb did:generate-private-key` and put it in a file **in the root project folder** named `priv.key`.\n3. Create a DID key from that private key: run `composedb did:from-private-key $(cat priv.key)` and put it in a file named `did.key`, **also in the root project folder.**\n4. Run `npm run daemon` at least once until the Ceramic Daemon is successfully running, and then terminate the process.\n5. You will need to find the `.ceramic/daemon.config.json` file on your system and paste in the DID key to the `admin-dids` field in the JSON. Save the file.\n6. Run `npm run daemon` to relaunch the Ceramic Daemon, which should now be running successfully with your admin DID (you should be able to see the admin DID in the CLI messages when the Daemon runs).\n7. In a new, separate terminal window, run `npm run prep` to create the `ritual.json` file found in the `composites` directory.\n8. Copy the StreamID from the newly created `composites/ritual.json` file and paste it into the `id` argument of the `@loadModel` directive for `DemoRitual` in `schemas/Shard.graphql`\n9. Run `npm run comp` to create the needed composites for ComposeDB, which will all appear in the `composites` directory.\n10. Copy the entirety of the `composites/demo-runtime.json` file.\n11. In the root project folder, create a `definition.js` file. In the file, type `export const definition =` and then paste the `demo-runtime.json` file contents in.\n12. For good measure, terminate the Ceramic Daemon process and restart it with `npm run daemon`. Then run `npm run dev` to spin up the application in a dev server.\n13. Check the browser console. If all is successful, then you should see a logged message showing the model resources that are being used.\n14. If for whatever reason you want to spin up graphiql to test some queries outside of the app, you can run `npm run gql` to do so.\n15. From there, you should be good to test the web app! The below image shows roughly what your root project structure should look like:\n\n## Ideal Root Directory Structure\n\n![Project Folder Structure](structure-example.jpg)\n\n## If you need to reset...\n\nIf you want to make any changes to the models and need to recreate the composites (or if you're experiencing some unknown error and just need a clean slate), you need to find the `.ceramic` directory in your system to delete it (it will be recreated when you run `npm run daemon`) so you can recreate it as a blank slate. Remember to re-add the admin DID to the `daemon.config.json` file if you do so.\n\nRemember to copy and paste the new `composites/demo-runtime.json` composite into the `definition.js` file after following the previous steps in the process as outlined above.\n\nDelete the `.parcel-cache` and `dist` directories before building the dev server again after recreating composites / restarting the Ceramic node to have the newest models loaded into the web app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontreau%2Fdarqnet-cdb-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontreau%2Fdarqnet-cdb-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontreau%2Fdarqnet-cdb-demo/lists"}