This application provides a functional recipe management system. Users can:
- Create and store complete recipes
- View a comprehensive recipe list
- Edit existing recipes
- Upload and manage recipe images
- Store and retrieve recipes from MongoDB database
-
Open terminal and navigate to the Schema directory:
cd "path-to-project\1-2_Group10_FrontendUI\Schema" -
Install backend dependencies:
npm init -y npm install express mongoose cors dotenv body-parser multer
-
Start MongoDB (Run PowerShell as Administrator):
net start MongoDB
-
Start the backend server:
node backend.js
-
Open a new terminal and navigate to the frontend directory:
cd "path-to-project\1-2_Group10_FrontendUI\responsive-recipe-website" -
Install frontend dependencies:
npm install
-
Start development server:
npm run dev
- Create and view recipes with detailed information
- Edit existing recipes with full update capability
- Add multiple ingredients with quantities and units
- Create step-by-step cooking instructions
- Upload high-quality recipe images
- Track preparation and cooking times accurately
- Responsive design for mobile and desktop use
-
Create a Recipe:
- Navigate to http://localhost:5173
- Click "Create New Recipe"
- Fill out the form with recipe details
- Add ingredients and instructions
- Upload an image
- Submit the form
-
View and Edit Recipes:
- Return to home page to see your recipe in the list
- Click on a recipe to view its details
- Use the edit button to modify any recipe information
-
Verify Database:
mongosh use recipe_db db.recipes.find()
-
Start MongoDB (Run PowerShell as Administrator):
net start MongoDB
-
Start Backend (in Schema directory):
node backend.js
-
Start Frontend (in responsive-recipe-website directory):
npm run dev
-
Access the application at: http://localhost:5173
Clear recipe database:
mongosh
use recipe_db
db.recipes.deleteMany({})-
Database Connection:
# If MongoDB won't start "C:\Program Files\MongoDB\Server\7.0\bin\mongod.exe" --dbpath="c:\data\db"
-
Clear Test Data:
mongosh use recipe_db db.recipes.deleteMany({}) -
Port Conflicts:
# Check if ports are in use netstat -ano | findstr :5000 netstat -ano | findstr :5173
-
Image Upload Issues:
- Ensure the uploads directory exists in the backend
- Check file size limits in the backend configuration
- Add user authentication and personal recipe collections
- Implement user authentication and personal recipe collections
- Add recipe rating and comments functionality
- Create recipe sharing capabilities
- Develop a mobile application version
- Implement advanced search with ingredient matching


