Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recipe Manager

A simple web application for managing and displaying recipes with ingredient information.

Prerequisites

  • Node.js (v14+)
  • MySQL (v8.0+)

Setup

  1. Clone the repository

  2. Install dependencies

   npm install
  1. 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
  1. Configure environment Create a .env file in the project root:
   DB_HOST=localhost
   DB_USER=your_username
   DB_PASS=your_password
   DB_NAME=recipe_db
   PORT=3000
  1. Start the application
   node app.js

You should see: "Server running on http://localhost:3000"

  1. Access the application Open your browser and navigate to http://localhost:3000

Project Structure

  • views/: EJS templates for rendering pages
  • routes/: Express route handlers
  • public/: Static assets (CSS, client-side JS)
  • app.js: Application entry point
  • database.js: Database connection configuration

About

My own version of a website for adding and displaying recipes

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages