Skip to content

Latest commit

 

History

History
91 lines (60 loc) · 2.57 KB

quick-setup.md

File metadata and controls

91 lines (60 loc) · 2.57 KB
layout title body_class
doc
Quick Setup
body-green

From project

The easyiest way to try playing is clone the sample project here https://github.com/opera-project/opera-cms

$ git clone [email protected]: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: .+

From composer with flex

Waiting PR in merge


From composer without flex

Create an Opera project

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.

Configure database

Presently, your database is not configured, you will not have permission. You must edit the DATABASE_URL in your .env file

Finish install

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.

Run Server

You can now start the web server: ./bin/console server:run

The admin will be available on http://localhost:8000/admin{:target="_blank"} using cedric as username and demo as password.

Next steps

This skeleton contains these bundles:

Things to know

Opera Project use EasyAdmin admin generator. You might want to take a look at their documentation{:target="_blank"} in the near futur.