rmatil/angular-cms

此包已被 废弃,不再维护。未建议替代包。

v0.2 2016-05-28 16:15 UTC

This package is auto-updated.

Last update: 2023-09-22 05:03:07 UTC


README

Build Status Codacy Badge

Angular CMS 是一个 Symfony 3.2 应用程序,需要 PHP 7.1。

安装

依赖项

  • 克隆仓库: git clone git@github.com:rmatil/angular-cms.git
  • cd angular-cms
  • 运行 composer install 以安装依赖项

设置

与许多其他 Symfony 项目一样,您必须首先设置应用程序,然后才能直接使用捆绑包。幸运的是,此项目包含对应捆绑包的所有必要配置,特别是 AngularCmsBundle

但是,您可能需要执行以下步骤以获取调整内容的 API 访问权限

  • app/config/parameters.yml 中配置数据库凭据,或在相应的 .dist 文件中。
  • 然后,运行 php app/console fos:user:create 并按照步骤操作。
  • 要访问 API,您的用户需要管理员权限:php app/console fos:user:promote 并在提示时使用角色 ROLE_SUPER_ADMIN

文件上传

上传文件时,您可能需要调整 PHP 安装的一些设置

API

  ----------------------------------- ---------- -------- ------ -----------------------------------
   Name                                 Method     Scheme   Host   Path
  ------------------------------------ ---------- -------- ------ -----------------------------------
  rmatil_cms_get_article_categories    GET        ANY      ANY    /api/v1/article-categories
  rmatil_cms_get_article_category      GET        ANY      ANY    /api/v1/article-categories/{id}
  rmatil_cms_update_article_category   PUT        ANY      ANY    /api/v1/article-categories/{id}
  rmatil_cms_insert_article_category   POST       ANY      ANY    /api/v1/article-categories
  rmatil_cms_delete_article_category   DELETE     ANY      ANY    /api/v1/article-categories/{id}
  rmatil_cms_get_articles              GET        ANY      ANY    /api/v1/articles
  rmatil_cms_get_article               GET        ANY      ANY    /api/v1/articles/{id}
  rmatil_cms_update_article            PUT        ANY      ANY    /api/v1/articles/{id}
  rmatil_cms_insert_article            POST       ANY      ANY    /api/v1/articles
  rmatil_cms_get_events                GET        ANY      ANY    /api/v1/events
  rmatil_cms_get_event                 GET        ANY      ANY    /api/v1/events/{id}
  rmatil_cms_update_event              PUT        ANY      ANY    /api/v1/events/{id}
  rmatil_cms_insert_events             POST       ANY      ANY    /api/v1/events
  rmatil_cms_delete_event              DELETE     ANY      ANY    /api/v1/events/{id}
  rmatil_cms_get_files                 GET        ANY      ANY    /api/v1/files
  rmatil_cms_get_file                  GET        ANY      ANY    /api/v1/files/{id}
  rmatil_cms_insert_file               POST       ANY      ANY    /api/v1/files
  rmatil_cms_delete_file               DELETE     ANY      ANY    /api/v1/files/{id}
  rmatil_cms_get_locations             GET        ANY      ANY    /api/v1/locations
  rmatil_cms_get_location              GET        ANY      ANY    /api/v1/locations/{id}
  rmatil_cms_update_location           PUT        ANY      ANY    /api/v1/locations/{id}
  rmatil_cms_insert_location           POST       ANY      ANY    /api/v1/locations
  rmatil_cms_delete_location           DELETE     ANY      ANY    /api/v1/locations/{id}
  rmatil_cms_get_media_tags            GET        ANY      ANY    /api/v1/media-tags
  rmatil_cms_get_media_tag             GET        ANY      ANY    /api/v1/media-tags/{id}
  rmatil_cms_update_media_tag          PUT        ANY      ANY    /api/v1/media-tags/{id}
  rmatil_cms_insert_media_tag          POST       ANY      ANY    /api/v1/media-tags
  rmatil_cms_delete_article            DELETE     ANY      ANY    /api/v1/articles/{id}
  rmatil_cms_get_pages                 GET        ANY      ANY    /api/v1/pages
  rmatil_cms_get_page                  GET        ANY      ANY    /api/v1/pages/{id}
  rmatil_cms_update_page               PUT        ANY      ANY    /api/v1/pages/{id}
  rmatil_cms_insert_page               POST       ANY      ANY    /api/v1/pages
  rmatil_cms_delete_page               DELETE     ANY      ANY    /api/v1/pages/{id}

浏览器访问

如果您配置了 /etc/hosts 文件,使其将请求重定向到您的 web 服务器上的 dev.cmsv5.rmatil.vagrant,则应用程序将自动在 dev 环境中运行。您可以在 web/.htaccess 中将主机名调整为任意值。

许可证

MIT License

Copyright (c) 2018 rmatil

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.