The easyiest way to try playing is clone the sample project here https://github.com/opera-project/opera-cms
$ git clone git@github.com:opera-project/skeleton.git
$ cd opera-cms
Comment the file /config/routes/opera_core.yaml
Run make init
Edit the DATABASE_URL
in your .env
file
Run make db
Uncomment the file /config/routes/opera_core.yaml
add the opera pages to your routing file config/routes.yaml
_opera_page:
path: /{_opera_page_path}/
defaults:
_opera_page_path: /
requirements:
_opera_page_path: .+
Waiting PR in merge
In your command console execute the following command:
composer create-project -s dev opera-project/skeleton:1.0.x-dev example
This command creates a new directory called example
that contains a new symfony project using opera.
Presently, your database is not configured, you will not have permission.
You must edit the DATABASE_URL
in your .env
file
You can now use make init
and make db
command in your project folder. It will create the database according to your DATABASE_URL
and load the schema and fixtures.
You can now start the web server:
./bin/console server:run
The admin will be available on http://localhost:8000/admin using cedric
as username and demo
as password.
This skeleton contains these bundles:
Opera Project use EasyAdmin admin generator. You might want to take a look at their documentation in the near futur.