Skip to content

Repository files navigation

Sonata Project

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)

Table of Contents

This guide will walk you through setting up the project, running the server, and testing the API.

Prerequisites

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)

Installation

  1. Clone the repository:

    git clone https://github.com/rhidja/sonata-project
    cd sonata-project
    
  2. Then run the following make command to install the application

make init

This 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.

Running the Application

./docs/postman_collection.json // Contain a collection of endpoints.
./docs/postman_environnement.json // The environment variables.

API Documentation

To see different endpoints of the api https://127.0.0.1:8000/api/doc

About

Symfony app with Sonata BO and Rest API

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages