CMS Headless is a content management system that allows you to manage and deliver content via APIs. This project is built using PHP, Symfony, and Doctrine ORM.
- Import CSV files
- Manage content entities
- API endpoints for content management
- User authentication and authorization
-
Clone the repository:
git clone https://github.com/your-username/cms-headless.git cd cms-headless -
Install dependencies using Composer:
composer install
-
Set up the environment variables:
cp .env.example .env
-
Update the
.envfile with your database configuration. -
Run the database migrations:
php bin/console doctrine:migrations:migrate
-
Start the Symfony server:
symfony server:start
The API documentation is available at:
http://127.0.0.1:8000/api/docsCreate User :
php bin/console user:create --email="user@example.com" --password="securepassword"Update User Role :
php bin/console user:role email ROLE_USER add