{"id":23044874,"url":"https://github.com/cmsrs/cmsrs2","last_synced_at":"2025-04-03T01:44:14.393Z","repository":{"id":73449030,"uuid":"87060053","full_name":"cmsrs/cmsrs2","owner":"cmsrs","description":"cms base on YII2 and Angular 4","archived":false,"fork":false,"pushed_at":"2017-10-03T18:13:33.000Z","size":2227,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T16:12:59.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/cmsrs.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}},"created_at":"2017-04-03T09:54:50.000Z","updated_at":"2023-02-04T11:27:16.000Z","dependencies_parsed_at":"2023-02-24T04:15:22.638Z","dependency_job_id":null,"html_url":"https://github.com/cmsrs/cmsrs2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmsrs%2Fcmsrs2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmsrs%2Fcmsrs2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmsrs%2Fcmsrs2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmsrs%2Fcmsrs2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmsrs","download_url":"https://codeload.github.com/cmsrs/cmsrs2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246922235,"owners_count":20855343,"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":"2024-12-15T21:17:02.739Z","updated_at":"2025-04-03T01:44:14.357Z","avatar_url":"https://github.com/cmsrs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#cmsRS\n\n##Description\n===========\n\nCmsRS is a cms base on: \n* Yii2 advanced template \n* Angular v4 (administration panel)\n* CSS · Bootstrap (frontend and backend)\n\nThis is cutdown version of my cms.\nIt is include:\n* add pages and menu\n* add content to the page\n* set up langs\n* log in to administration panel\n* upload and delete image (todo)\n\nDb scheme:\n\n\u003cimg src=\"https://github.com/cmsrs/cmsrs/blob/master/temp/schema_cmsrs.png\" alt=\"Db scheme\" /\u003e\n\n\nThe full version available on the website:\n\nhttp://www.cmsrs.pl/en/cms/cmsrs/about-cmsrs\n\n\n##Installation\n============\n\n1. Install:\n\n```bash\n\tgit clone https://github.com/yiisoft/yii2-app-advanced.git\n\tcd yii2-app-advanced\n\tcomposer global require \"fxp/composer-asset-plugin:^1.2.0\"\n\tcomposer create-project --prefer-dist yiisoft/yii2-app-advanced cmsrs\n\t\t\n\tcd cmsrs\n\tgit clone https://github.com/cmsrs/cmsrs2.git\n\trm -rf common frontend admin; mv cmsrs2/* .; rm -rf  cmsrs2\n```\n\n2. Set db:\n\n\tChange: `common/config/main-local.php` accordingly.\n\t\n\tCreate table to database from `temp/cmsrs4.sql` in my case:\n\t\n```bash\t\n\tmysql --default-character-set=utf8 -u cmsrs -ppass123456 cmsrs \u003c ./temp/cmsrs4.sql \n```\n\t\nInsert admin user name demo/demo - to administration panel:\n\t\n```sql\n\tINSERT INTO `user` (`id`, `username`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES\n    \t(1, 'demo', 'u4qnlunMrSWqcyitTV06gH5C8ZlAaWar', '$2y$13$dN9ipH0Pc2zLBsDGfIkLOuZDvG0Lv5YACMWCAUIYeCHqNKfw3VbDa', NULL, 'demo@localhost.com', 10, 1428424049, 1428424049);\n```\n\n\n3. Set vhosts:\n\t\n\tFrontend:\n\n\t url: `cmsrs3.loc` \n\t `/path/to/yii2-app-advanced/cmsrs/frontend/web/`\n\t\n\tBackend:\n\n\t url:  `cmsrs3admin.loc` (it is a important name)\n\t `/path/to/yii2-app-advanced/cmsrs/admin/web/`\n\n```apache\n\t\u003cVirtualHost *:80\u003e\n\t\tServerName cmsrs3.loc\n\t\tDocumentRoot \"/path/to/yii2-app-advanced/cmsrs/frontend/web/\"\n\t\t\t\n\t\t\u003cDirectory \"/path/to/yii2-app-advanced/cmsrs/frontend/web/\"\u003e\n               \t\t# use mod_rewrite for pretty URL support\n               \t\tRewriteEngine on\n               \t\t# If a directory or a file exists, use the request directly\n               \t\tRewriteCond %{REQUEST_FILENAME} !-f\n               \t\tRewriteCond %{REQUEST_FILENAME} !-d\n               \t\t# Otherwise forward the request to index.php\n               \t\tRewriteRule . index.php\n\n               \t\t# use index.php as index file\n               \t\tDirectoryIndex index.php\n\n               \t\t# ...other settings...\n\t\t\u003c/Directory\u003e\n       \u003c/VirtualHost\u003e\n\n\n\t\u003cVirtualHost *:80\u003e\n\t\tServerName cmsrs3admin.loc  \n\t\tDocumentRoot \"/path/to/yii2-app-advanced/cmsrs/admin/web/\"\n\t\t\t\n\t\t\u003cDirectory \"/path/to/yii2-app-advanced/cmsrs/admin/web/\"\u003e\n               \t\t# use mod_rewrite for pretty URL support\n               \t\tRewriteEngine on\n               \t\t# If a directory or a file exists, use the request directly\n               \t\tRewriteCond %{REQUEST_FILENAME} !-f\n               \t\tRewriteCond %{REQUEST_FILENAME} !-d\n               \t\t# Otherwise forward the request to index.php\n               \t\tRewriteRule . index.php\n\n               \t\t# use index.php as index file\n               \t\tDirectoryIndex index.php\n\n               \t\t# ...other settings...\n           \t\u003c/Directory\u003e\n       \u003c/VirtualHost\u003e\n```       \n\n4. Edit hosts:\n\n```bash\n\t127.0.0.1 cmsrs3.loc\n\t127.0.0.1 cmsrs3admin.loc\n```\t\n\n5. Run server side tests:\n\n```bash\n\tcd temp/scripts_cli\n\t./go.sh\n```\n\n6. Config cms:\n\n\t`common/config/params.php`\n\n\n7. Backend:\n\n\t`http://cmsrs3admin.loc/admin`\n\n\tLogin as demo/demo. Create menu and pages in many languages\n\n\n8. Frontend:\n\n\t`http://cmsrs3.loc/`\n\n\nFor developers:\n\n- run administration cmsrs panel from source (Angular 4)\n\n```bash\n\tcd ~\n\tmkdir cmsrs \n\tcd cmsrs\n\tng new admincmsrs\n\tcd admincmsrs\n\tmv src src_org\n\tcp -r  \u003cpath_to_cmsrs2\u003e/temp/src .\n\tng serve \u0026\n\tchromium-browser --disable-web-security --user-data-dir  http://localhost:4200\n\t\n\t#build source\n\tng build --base-href admin\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmsrs%2Fcmsrs2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmsrs%2Fcmsrs2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmsrs%2Fcmsrs2/lists"}