A C# MVC website application for meal planning. Users can search for recipes using the Spoonacular API, generate personalized meal plans, and create custom meal plans. The platform allows users to create accounts to save their daily meal plans and track nutritional information including macronutrients.
- Clone the repository:
git clone https://github.com/mirna-salem/RecipeApplication.git cd RecipeApplication - Restore dependencies:
dotnet restore
- Configure your API key:
- Copy your Spoonacular API key into
RecipeApplication/appsettings.Development.json:"SpoonacularApiKey": "YOUR_SPOONACULAR_API_KEY_HERE"
- Copy your Spoonacular API key into
- Set up the database:
cd RecipeApplication dotnet ef database update cd ..
- Run the application:
The app will be available at the URLs shown in the terminal (e.g., https://localhost:7092).
cd RecipeApplication dotnet run
- ASP.NET Core MVC: Main web framework for controllers, views, and routing.
- Entity Framework Core: Handles data access and migrations, using SQL Server LocalDB for development.
- Identity: User authentication and management via ASP.NET Core Identity.
- Spoonacular API: External API for recipe and meal plan data.
Solution Structure:
RecipeApplication/
├── Controllers/ # MVC controllers (main logic)
├── Models/ # Data models and view models
├── Areas/Identity/ # User authentication and identity management
├── Views/ # Razor views (UI)
├── wwwroot/ # Static files (CSS, JS, images)
├── Migrations/ # Entity Framework migrations
├── appsettings.*.json # Configuration files
└── Program.cs # App startup and configuration
You can access the deployed application at: https://yummy-g2h9hphecrbfgcay.canadacentral-01.azurewebsites.net/
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
For questions or support, please open an issue on GitHub or contact the maintainer.