{"id":21044920,"url":"https://github.com/opusvl/fb11-demo","last_synced_at":"2025-07-22T10:06:39.607Z","repository":{"id":148071928,"uuid":"120486207","full_name":"OpusVL/FB11-Demo","owner":"OpusVL","description":null,"archived":false,"fork":false,"pushed_at":"2019-09-18T08:37:44.000Z","size":12,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-13T22:11:29.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpusVL.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-02-06T16:16:32.000Z","updated_at":"2019-12-28T00:09:53.000Z","dependencies_parsed_at":"2023-05-19T01:45:45.902Z","dependency_job_id":null,"html_url":"https://github.com/OpusVL/FB11-Demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OpusVL/FB11-Demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2FFB11-Demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2FFB11-Demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2FFB11-Demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2FFB11-Demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpusVL","download_url":"https://codeload.github.com/OpusVL/FB11-Demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpusVL%2FFB11-Demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266472945,"owners_count":23934472,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-19T14:19:09.430Z","updated_at":"2025-07-22T10:06:39.583Z","avatar_url":"https://github.com/OpusVL.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FB11::Demo\n\nThis small demo app was made to show off FB11's features and also as a test bed\nagainst which changes to FB11 could be exhibited without the obfuscating content\nof client work.\n\n## Creation\n\nThis app was created with the following simple commands:\n\n    dzil new -P FB11 FB11::Demo\n    cd FB11-Demo\n    dzil add -P FB11 -p FB11X FB11::Demo::FB11X::Admin\n\nThe first line minted the main application, and the third added an FB11X\ncomponent. It is not strictly necessary to call this FB11X, but the convention\nis helpful.\n\nObviously this only created a skeleton; the rest of the work was done manually.\n\n# Running\n\nYou can plackup the PSGI file and go nuts. Remember to install dependencies:\nthere's a `cpanfile` for that.\n\n    cpanm --installdeps .\n    plackup -I lib -p 12345 fb11-demo.psgi\n\nIt's a Catalyst app so you can configure it yourself. You'll need a postgres\ndatabase. See below for database setup.\n\n## Docker\n\nI have dockerised this application. There is a Makefile here. You should use\nthat.\n\n    make docker\n    docker-compose up -d\n\nYou should also copy the `docker-compose.override.yml.example` to\n`docker-compose.override.yml` and amend it to suit your needs. Your most likely\nuse of this is to add a port to localhost that will serve your app.\n\nTo serve it on `localhost:12345`:\n\n    ...\n    app:\n      ports:\n        - \"12345:5000\"\n\nRemember to run `docker-compose up -d` whenever you make changes to this YAML\nfile. Remember not to make changes to the base YAML file.\n\n### Developing\n\nYou can make changes to the checked-out code using volumes and environment\nvariables. The example `docker-compose.override.yml.example` file contains\nconfiguration that will mount your code into the container and add it to\n`PERL5LIB`. Whenever you change your code in this situation, you will want to\nrestart the container\n\n    docker-compose restart app\n\n# Database\n\nThere's magic that sets up the database. It's in OpusVL::FB11, which you\ninstalled as a dependency, or which you have because you're using docker.\n\n    fb11-dbh -C Model::FB11AuthDB -t 1 OpusVL::FB11::Schema::FB11AuthDB deploy\n    fb11-dbh -C Model::FB11AuthDB OpusVL::FB11::Schema::FB11AuthDB upgrade\n\nIf you're using docker you can just put `docker-compose exec app` in front of\neach command to run it within the container.\n\nIn future we shall make this be done via the application itself.\n\n## Docker\n\nThe docker setup by default stores your postgres data in the directory `pgdata`.\nWe use a volume so that if you have to recreate this container, you don't lose\nall the stuff you've done within the app.  You can override this in your\noverride file simply by providing a new value for the `volumes` array, like in\nthe example overrides file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopusvl%2Ffb11-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopusvl%2Ffb11-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopusvl%2Ffb11-demo/lists"}