shadcn / contenta_jsonapi

Contenta makes your content happy.

Home Page:http://www.contentacms.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contenta

Quick Install

  • Install composer
  • Make sure you have the sqlite extension for PHP (if you're using the default install on a mac, this should already be there) sudo apt-get install php-sqlite3
  • Run the following:
php -r "readfile('https://raw.githubusercontent.com/contentacms/contenta_jsonapi/8.x-1.x/installer.sh');" > contentacms.sh
chmod a+x contentacms.sh
./contentacms.sh

Installation

  • Get composer
  • Create a new project using a command like this. This will pull down the installation profile + core + modules, so maybe get a cup of tea:
composer create-project contentacms/contenta-jsonapi-project MYPROJECT --stability dev --no-interaction
  • After that install Drupal normally.

CORS

When you actually build a frontend you will likely have CORS (Cross-Origin Resource Sharing) issues.

In order to allow browsers to request the contenta backend you need to:

  • Copy sites/default/default.services.yml to sites/default/services.yml
  • Allow your app to access it, by replacing the end of this configuration file.
  cors.config:
    enabled: true
    allowedHeaders:
      - '*'
    allowedMethods:
      - '*'
    allowedOrigins:
       # Note: you need to specify the host + port where your app will run.
      - localhost:8000
    exposedHeaders: false
    maxAge: false
    supportsCredentials: false
  • Run drush: cd web && ../bin/drush rc

Development

Join the discussion in the #contenta Slack channel.

For documention on the development on contenta_jsonapi itself, see docs/development.

Frontends

Please implement your own frontends and talk about it

Existing frontends (all in development):

Credits

This work is based upon a couple of contrib modules.

On top of that the thunder distrbution was used as sort of a base for this installation profile.

Contenta CMS is built by humans.

About

Contenta makes your content happy.

http://www.contentacms.org/

License:GNU General Public License v2.0


Languages

Language:JavaScript 52.0%Language:CSS 45.3%Language:PHP 1.7%Language:HTML 0.7%Language:Shell 0.4%