- 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
- Visit http://127.0.0.1:8888/ and log into your site with
admin
/test
- 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.
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
Join the discussion in the #contenta Slack channel.
For documention on the development on contenta_jsonapi itself, see docs/development.
Please implement your own frontends and talk about it
Existing frontends (all in development):
- https://github.com/contentacms/contenta_angular
- https://github.com/contentacms/contenta_react
- https://github.com/contentacms/contenta_jsonapi__elm
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.