Maacars is a simple car rental API for demonstration purposes. It allows users to rent cars and manage their rentals.
you need to have the following installed on your machine
- php 8.1 or higher
- composer
- mysql 8.0 or higher
- git
- symfony-cli (optional)
- Clone the repository
$ git clone git@github.com:maamoune04/maacars.git
- Change into the directory
$ cd maacars
- Install the dependencies
$ composer install
- Create a new file called .env.local or edit the .env file and add your database credentials and other configurations
- Create the database
$ php bin/console doctrine:database:create
- Run the migrations
$ php bin/console doctrine:migrations:migrate
- Load the fixtures
$ php bin/console doctrine:fixtures:load
- Generate ssl keys
$ php bin/console lexik:jwt:generate-keypair
- Start the server
$ symfony serve
or if you don't have Symfony-CLI run$ php -S 127.0.1:8000 -t public
- Visit the api documentation at
http://127.0.0.1:8000/api
- Symfony - The PHP framework used
- Api Platform - The API framework used
- Maamoune Hassane - linkedin