Skip to content

shadcn/contenta_jsonapi

 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 51.9%
  • CSS 45.3%
  • PHP 1.7%
  • Other 1.1%