{"id":27004446,"url":"https://github.com/tacc/protx-dashboard","last_synced_at":"2025-06-21T21:35:50.455Z","repository":{"id":37081365,"uuid":"390494484","full_name":"TACC/protx-dashboard","owner":"TACC","description":"PRO-TX Dashboard","archived":false,"fork":false,"pushed_at":"2024-07-09T18:13:36.000Z","size":1502,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-06-04T05:54:04.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/TACC.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":"2021-07-28T20:25:50.000Z","updated_at":"2023-04-17T20:28:43.000Z","dependencies_parsed_at":"2022-07-11T20:01:39.348Z","dependency_job_id":"c8c54f2c-f661-4bb5-8cbb-ac13711ad835","html_url":"https://github.com/TACC/protx-dashboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TACC/protx-dashboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TACC%2Fprotx-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TACC%2Fprotx-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TACC%2Fprotx-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TACC%2Fprotx-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TACC","download_url":"https://codeload.github.com/TACC/protx-dashboard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TACC%2Fprotx-dashboard/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261197893,"owners_count":23123802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-04-04T06:16:50.891Z","updated_at":"2025-06-21T21:35:45.443Z","avatar_url":"https://github.com/TACC.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PRO-TX Dashboard\n\nPRO-TX Dashboard \n\nThe development environment configured here is configured similar to the deployed dashboard [Core Portal Deployments](https://github.com/TACC/Core-Portal-Deployments) and uses related CEP software ( [Camino](https://github.com/TACC/Camino), [Core CMS](https://github.com/TACC/Core-CMS), and [Core Portal](https://github.com/TACC/Core-Portal))\n\n\n## Development setup\n\n### Configure settings\n\n* Create `conf/portal/settings_secret.py` by using the same CEP developer settings [stored in UT Stache](https://stache.utexas.edu/entry/bedc97190d3a907cb44488785440595c) that are used in other CEPv2 development projects.\n\n\n### Configure databases\n\nPlace `resources.db` and `cooks.db` in `~/protx-data/`\n\n### Build development environment:\n\n`docker-compose build`\n\n### Start development environment:\n\n`docker-compose up`\n\nFollowed by:\n```\n    docker exec core_portal_django python3 manage.py migrate\n    docker exec core_portal_django python3 manage.py collectstatic --noinput\n    docker exec core_portal_cms python3 manage.py migrate\n    docker exec core_portal_cms python3 manage.py collectstatic --noinput\n```\n\nTo run queries ahead-of-time (needed whenever databases have changed) so that they are cached and do\nnot exceed the timeout:\n```\ndocker exec -it protx python3 scripts/run_queries.py --clear-cache\n```\n\nNote: CEP portal is not completely configured and is missing steps for ES etc\n\n### Configure pages/iframe\n\nGet access to Django CMS, run `docker exec -it core_portal_cms /bin/bash` and then:\n\n```\npython3 manage.py createsuperuser\n```\n\nIn Django CMS admin (i.e. https://cep.test/admin/`), you need to create a page  that contains one custom code snippet (to embed the iframe).\n\n#### Creating the Snippet\n\n* Login to the `CMS Admin \u003e Snippets`.\n* Add a `New Snippet`.\n* Name it `Data and Analysis`.\n* Copy \u0026 paste the following markdown code into the body field:\n```\n\u003cdiv style=\"margin:0; padding:0;\"\u003e\n    \u003cdiv style=\"display:flex; flex-direction:column; min-height:100vh;\"\u003e\n        \u003ciframe style=\"border:none; flex-grow:1;\" src=\"https://cep.test/protx/dash/\"\u003e\u003c/iframe\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n```\n* Save the Snippet.\n\n#### Creating the Page\n\n* Navigate to the `CMS Admin \u003e Pages`.\n* Add a `New Page`.\n* Name the page `Data and Analysis`.\n* Set the slug value to `data-and-analysis`.\n* Choose `Save and Continue Editing` on the new page.\n* Select the `Advanced Settings` button.\n* Change the `TEMPLATE` to `Full Width`.\n* Save the page changes.\n* Select `Permissions` from the CMS hamburger menu (far right).\n* Select the `Login required` checkbox.\n* Under the `MENU VISIBILITY` dropdown, select `for logged in users only`.\n* Save the permission changes.\n* Publish the Page again to pick up the permission changes.\n\n#### Using the Snippet in the Page\n\n* Navigate to the newly created data-and-analysis page as CMS Admin.\n* In the Structure View (CMS toolbar, top right), under the `CONTENT` section, click the plus to add a new plugin and select a `Text` element.\n* Edit the newly added Text Element under the content section.\n* Select “Snippet” from the `CMS plugins` dropdown menu options in the text editor window, then select the `Data and Analysis` snippet.\n* Save the editor window and close it.\n* Publish the Page to display the changes.\n* The link in the navigation menu will now route the user to the page with the embedded protx container iframe.\n\n### Start frontend\n\n```\ncd protx-client\nnpm ci\nnpm run dev\n```\n\nThen go to either `https://cep.test/`, `https://cep.test/workbench`, `https://cep.test/protx/dash/`\n\n## Testing\n\n### Backend testing\n\n```\ndocker exec -it protx /bin/bash\n```\n\nfollowed by:\n\n```\npytest -ra\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacc%2Fprotx-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftacc%2Fprotx-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftacc%2Fprotx-dashboard/lists"}