A simple web application for managing and displaying recipes with ingredient information.
- Node.js (v14+)
- MySQL (v8.0+)
-
Clone the repository
-
Install dependencies
npm install- Database setup
# Create the database
mysql -u root -p -e "CREATE DATABASE IF NOT EXISTS recipe_db;"
# Import schema and seed data
mysql -u root -p recipe_db < recipe_db_dump.sql- Configure environment
Create a
.envfile in the project root:
DB_HOST=localhost
DB_USER=your_username
DB_PASS=your_password
DB_NAME=recipe_db
PORT=3000- Start the application
node app.jsYou should see: "Server running on http://localhost:3000"
- Access the application Open your browser and navigate to http://localhost:3000
views/: EJS templates for rendering pagesroutes/: Express route handlerspublic/: Static assets (CSS, client-side JS)app.js: Application entry pointdatabase.js: Database connection configuration