Giter Site home page Giter Site logo

angular-cms's Introduction

angular-cms

Build Status Codacy Badge

Angular CMS is a Symfony 3.2 application and requires PHP 7.1.

Installation

Dependencies

  • Clone the repo: git clone [email protected]:rmatil/angular-cms.git
  • cd angular-cms
  • run composer install to install dependencies

Setup

As done in many other Symfony projects, you have to setup your application first, before being able to use a bundle directly. Luckily, this project contains all the necessary configuration for the corresponding bundles, in particular AngularCmsBundle.

However, you might need to perform the following steps to get access to the API allowing to adjust content:

  • Configure the database credentials in app/config/parameters.yml resp. in the corresponding .dist file.
  • Then, run php app/console fos:user:create and follow the steps.
  • For accessing the API your user needs admin permmissions: php app/console fos:user:promote and use the role ROLE_SUPER_ADMIN when prompted.

File Upload

For uploading files you may need to adjust some settings on your php installation:

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}

Browser Access

If you configure your /etc/hosts file to redirect requests to dev.cmsv5.rmatil.vagrant to your webserver, then the application is automatically ran in dev environment. You can adjust the hostname to an arbitrary value in web/.htaccess.

License

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.

angular-cms's People

Contributors

rmatil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

angular-cms's Issues

File gets not associated to Event

When selecting a file from the dropdown menu on route cms/events/:id and saving the event, the association does not get mapped to the database.

Event start/end time wrong

EventController is not respecting timezones on save resp. fetch from database.
Results in incrementally adding timezone offset to start/end time

Fix changing of user password

PUT http://cmsv4.dev.local/api/users/1

{
    "id": 1,
    "user_group": {
        "id": 2,
        "name": "Admin",
        "role": "ROLE_SUPER_ADMIN",
        "accessible_articles": [],
        "accessible_pages": [],
        "accessible_events": []
    },
    "user_name": "rlas",
    "first_name": "first",
    "last_name": "last",
    "email": "[email protected]",
    "phone_number": "081 641 25 78",
    "mobile_number": "079 785 54 53",
    "address": "some address",
    "zip_code": "1234",
    "place": "somewhere",
    "last_login_date": "2015-09-03T17:20:38 0000",
    "registration_date": "2015-09-03T17:20:38 0000",
    "is_locked": false,
    "has_email_validated": false,
    "plain_password": "new-pass"
}

Error: Fatal error: Class 'rmatil\cms\Utils\PasswordUtils' not found in /var/www/src/rmatil/cms/Controller/UserController.php on line 80

Fix install script

  • Move install procedure to dedicated file
  • Install script has wrong routes configured

Avoid using Symfony ACL

At the moment, Symfony's ACL based on RoleSecurityIdentities is not of much use:

Reasons:

Solution

Use Role Voters instead: http://symfony.com/doc/current/security/voters.html

Fix file upload

Check for presence of image functions in ThumbnailHandler. The following occurred while uploading a png image:

screen shot 2015-09-03 at 21 06 40

Remove delete-button on object-create

Remove link for deleting the currently adding object.
Found in: add-article.html, add-page.html, add-event.html, add-location.html, add-user.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.