BEdita API-first content management server app
BEdita 4 is a ready to use back-end API to handle the data of your mobile, IoT, web and desktop applications. It's also an extensible framework to build your custom back-end API via plugins.
It provides a complete content management solution with:
- a headless HTTP server application with a complete REST API to model, create, modify and retrieve data
- a default admin web application (not yet available)
BEdita 4 is built with CakePHP 3 and uses relational DBMS like MySQL, Postgres or SQLite in conjunction with (optional) NoSQL systems like Redis, Elastic Search or time series databases to boost performance and scale up to Big Data scenarios.
JSON-API is the primary exchange data format.
GrapQL initial support available via dedicated plugin.
Development is currently in beta stage - DON'T USE IT ON A PRODUCTION SYSTEM
- PHP 7 (recommended) or PHP 5.6
- MySQL 5.7 (recommended) or MySQL 5.6, Postgres 9.5/9.6 or SQLite 3
For a detailed setup overview see Setup Documentation
Quick setup in three steps.
- Create project via composer
composer create-project -s dev bedita/bedita
If you are using a .zip or .tar.gz release file you just need to unpack it and then run
Create an empty database either MySQL or PostgresSQL. Do nothing for SQLite.
Change to the newly created folder and run this script to initialize the database and create first admin user:
bin/cake bedita setup
curl -H Accept:application/json http://your-vhost/home
Otherwise, only for development or test setups, you can take advantage of PHP builtin server with this simple command:
/home endpoint response pointing to
http://localhost:8765/home like this:
curl -H Accept:application/json http://localhost:8765/home
For an explanation on
Accept headers usage read here.
See Docker setup documentation for a more detailed overview.
Get latest offical image build from Docker Hub
docker pull bedita/bedita:latest
You may also use
:4-cactus tag instead of
:latest, they are currently synonyms.
If you want to build an image from local sources you can do it like this from BEdita root folder:
docker build -t bedita4-local .
You may of course choose whatever name you like for the generated image instead of
Run a Docker image setting an initial API KEY and admin username and password like this:
docker run -p 8090:80 --env BEDITA_API_KEY=1029384756 \ --env BEDITA_ADMIN_USR=admin --env BEDITA_ADMIN_PWD=admin \ bedita/bedita:latest
This will launch a BEdita4 instance using
SQLite as its storage backend. It should become available at http://localhost:8090/home almost instantly.
bedita4-local (or other chosen name) to lanch a local built image.
Developer documentation can be found here
BEdita is released under LGPL, Lesser General Public License v3.