{"id":20081557,"url":"https://github.com/mixerapi/demo","last_synced_at":"2025-05-06T00:31:21.994Z","repository":{"id":38212416,"uuid":"356699947","full_name":"mixerapi/demo","owner":"mixerapi","description":"MixerAPI demo project based on the mixerapi/app template.","archived":false,"fork":false,"pushed_at":"2024-03-26T00:06:10.000Z","size":3068,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T06:06:14.755Z","etag":null,"topics":["cakephp","docker","mixerapi","php","rest","rest-api"],"latest_commit_sha":null,"homepage":"https://demo.mixerapi.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mixerapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-04-10T21:33:30.000Z","updated_at":"2022-05-11T03:52:05.000Z","dependencies_parsed_at":"2024-11-13T15:44:10.050Z","dependency_job_id":"f135f66a-b2cd-46f4-9e80-aef837e4854c","html_url":"https://github.com/mixerapi/demo","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":"mixerapi/app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixerapi%2Fdemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixerapi%2Fdemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixerapi%2Fdemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixerapi%2Fdemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mixerapi","download_url":"https://codeload.github.com/mixerapi/demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252598290,"owners_count":21774233,"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":["cakephp","docker","mixerapi","php","rest","rest-api"],"created_at":"2024-11-13T15:39:27.408Z","updated_at":"2025-05-06T00:31:20.376Z","avatar_url":"https://github.com/mixerapi.png","language":"PHP","readme":"# MixerAPI Demo\n\n[![Build](https://github.com/mixerapi/demo/actions/workflows/build.yml/badge.svg)](https://github.com/mixerapi/demo/actions/workflows/build.yml)\n[![Image](https://github.com/mixerapi/demo/actions/workflows/image.yml/badge.svg)](https://github.com/mixerapi/demo/actions/workflows/image.yml)\n[![MixerApi](https://mixerapi.com/assets/img/mixer-api-red.svg)](http://mixerapi.com)\n[![CakePHP](https://img.shields.io/badge/cakephp-^5.0-red?logo=cakephp)](https://book.cakephp.org/5/en/index.html)\n[![Docker](https://img.shields.io/badge/docker-ffffff.svg?logo=docker)](https://hub.docker.com/r/mixerapidev/demo)\n[![PHP](https://img.shields.io/badge/php-^8.1-8892BF.svg?logo=php)](https://hub.docker.com/_/php)\n[![NGINX](https://img.shields.io/badge/nginx-1.19-009639.svg?logo=nginx)](https://hub.docker.com/_/nginx)\n[![MySQL](https://img.shields.io/badge/mysql-8-00758F.svg?logo=mysql)](https://hub.docker.com/_/mysql)\n\nA [mixerapi/mixerapi](https://github.com/mixerapi/mixerapi) demo application. This project was generated from the\n[mixerapi/app](https://github.com/mixerapi/app) template. See that project for additional details.\n\nCheckout the live demo: [https://demo.mixerapi.com](https://demo.mixerapi.com)\n\n- [Installation](#Installation)\n- [Examples](#Examples)\n\n## Installation\n\nYou can run this demo via Docker and/or a local LAMP stack. Fork/clone this repository to get started.\n\n### Docker\n\nBring up stack:\n\n```console\nmake init\n```\n\nNext, generate schema and seed data:\n\n```console\nmake php.sh\nbin/cake migrations migrate\nbin/cake migrations seed\n```\n\nThat's it! Now browse to [http://localhost:8080](http://localhost:8080).\n\n#### For Mac Users\n\n1. Change your `SHELL` in the Makefile to `/bin/zsh`. This improves various output from the Makefile such as emoji's.\n\n3. Mac ships with an older version of `sed` so install `gnu-sed` for some targets in the Makefile:\n\n```console\nbrew install gnu-sed\n```\n\nThen update `sed` to `gsed` in the Makefile.\n\n### Local\n\nCopy default configs:\n\n```console\ncd app\ncp config/.env.example config/.env\ncp config/app_local.example.php config/app_local.php\ncp ../.assets/bootstrap.php config/bootstrap.php\n```\n\nConfigure your database settings in `app/config/.env` and run:\n\n```console\ncomposer install\nbin/cake migrations migrate\nbin/cake migrations seed\n```\n\nGenerate keys for authentication examples:\n\n```console\nmkdir -p plugins/AuthenticationApi/config/keys/1\nopenssl genrsa -out plugins/AuthenticationApi/config/keys/1/private.pem 2048\nopenssl rsa -in plugins/AuthenticationApi/config/keys/1/private.pem -outform PEM -pubout -out plugins/AuthenticationApi/config/keys/1/public.pem\nopenssl rand -base64 24 \u003e plugins/AuthenticationApi/config/keys/hmac_secret.txt\n```\n\nBring on local server:\n\n```console\nbin/cake server\n```\n\nBrowse to the URL given by the `server` console command.\n\n## Examples\n\n- For Docker see this [README](https://github.com/mixerapi/app).\n- For information on the demo application code see [app/README.md](./app/README.md)\n- For JWT Authentication see [AuthenticationApi](app/plugins/AuthenticationApi/README.md). The\nAuthenticationApi uses [MixerApi/JwtAuth](https://github.com/mixerapi/jwt-auth). See `plugin/AdminApi/src/Application.php`\nfor loading [CakePHP authenticators and identifiers](https://book.cakephp.org/authentication/2/en/index.html).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixerapi%2Fdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmixerapi%2Fdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixerapi%2Fdemo/lists"}