Follow these steps to get the project up and running locally.
-
Build and start the Docker containers:
Run the following command to build and start the containers:
docker-compose up --build
-
Install PHP dependencies:
docker exec -it php_cli bash composer install -
Import the database:
Import the bookdb.sql file located in the src folder to the bookdb database using phpMyAdmin at http://localhost:8081
-
View the API documentation:
cd api-docs npx serve
This will start the server and you can view the API documentation at http://localhost:5000.