This application is built using Symfony 6 famework + Sonata Project 4, it based on Symfony REST API.
It provides:
- Rest API secured using
X-Auth-Token - Backoffice (Sonata Project)
This guide will walk you through setting up the project, running the server, and testing the API.
Before you begin, ensure you have the following installed:
- PHP (8.1 or higher)
- Composer
- Symfony CLI (optional but recommended)
- Database (MySQL, etc., depending on your setup)
-
Clone the repository:
git clone https://github.com/rhidja/sonata-project cd sonata-project -
Then run the following
makecommand to install the application
make initThis command will:
- Run
composer install. - Drop the old database if it exists.
- Create a new database.
- Run migrations.
- Run fixtures
- Start the Symfony Local Server.
-
Backoffice access:
- Url: https://127.0.0.1:8000/admin
- Login:
admin - Password:
admin
-
A
Postmancollection is included to test different endpoints of the api.
./docs/postman_collection.json // Contain a collection of endpoints.
./docs/postman_environnement.json // The environment variables.
To see different endpoints of the api https://127.0.0.1:8000/api/doc