A RESTful API built with Laravel to manage recipes, ingredients, and cooking steps while integrating a Nutrition API to calculate nutritional values.
- Clone the repository:
git clone https://github.com/shirazJafri/recipe-nutrition.git
cd recipe-nutrition- Install dependencies:
composer install- Configure
.env: Update external API credentials in the.envfile:
NUTRITION_API_URL=https://api.example.com
NUTRITION_API_USERNAME=your_username
NUTRITION_API_PASSWORD=your_password- Run migrations:
php artisan migrate:fresh.- Run the application:
composer run dev- Testing if things works as expected:
One can utilize the cURL_examples.sh file in the project directory
post server-startup to interact with the application and perform the
relevant CRUD operations.