Skip to content

simonberton/easyweb

Repository files navigation

Easy Web Admin Symfony 7.2

Easy web admin comes by default with some basic entities:

  • Contact
  • Post
  • Category
  • Image

It's purpose is to be a CMS with very easy extensibility.

By Running this command:

    bin/console easy:create-admin-object myNewEntity

It will create:

  • Entity
  • Form
  • Service
  • Repository
  • Controller

So we have all we need to create, edit and delete our newly created entity. By default it will create a route on our /admin/myNewEntity

If we want to change it, just go to the controller: myNewEntityController.php and change the route.

Infrastructure

Requirements

You'll need the following software installed on your machine:

## Docker

Create docker-compose environment file

```bash
cp infra/docker/dist.env infra/local/.env

Change the environment variables if needed. Defaults may suit your needs.

Build the containers and start them

docker-compose up --build -d

Database

docker exec -t easy-dbserver mysql -e "CREATE DATABASE IF NOT EXISTS easy"
docker exec -t easy-dbserver mysql -e "GRANT ALL ON easy.* TO 'easy'@'%' IDENTIFIED BY 'easy'"
docker exec -t easy-dbserver mysql -e "FLUSH PRIVILEGES"

App vendors

Copy Symfony env file (go back to root directory of the project)

cp dist.env .env

Install PHP vendors via composer.

docker exec -it easy-php composer install

Create DB schema

docker exec -it easy-php bin/console doctrine:schema:create

Assets

Build assets

docker exec -it easy-php yarn encore dev

Load Fixtures

docker exec -it easy-php bin/console doctrine:fixtures:load

Host and CMS

Update your /etc/host file:

echo "127.0.0.1 easy.loc" >> /etc/hosts

Open a browser and go to:

Git Hooks

Set pre-commit hook.

cp infra/git/hooks/pre-commit .git/hooks/pre-commit
chmod a+x .git/hooks/pre-commit

About

Symfony 7 Easy Administrator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors