J.D

Quote Finder
Assignment Project for learning accessing Database using Express
messagedocumentation_url

Quote Finder

A web application for searching and managing famous quotes and their authors. Built with Express.js and MySQL.

Features

Technologies

Getting Started

  1. Ensure MySQL is running and the database is set up
  2. Update database credentials in index.js
  3. Install dependencies and start:
npm install
node index.js

The server will run on http://localhost:3000.

Routes

Route Description
/ Add quote form
/home Main search page
/authors List all authors
/author/new Add new author
/author/edit Edit author
/allQuotes Display all quotes
/searchByAuthor Search by author
/searchByKeyword Search by keyword
/searchByLikes Search by likes range
/quoteByCategory Search by category
/api/author/:id Author API endpoint

Project Structure

index.js          - main application
views/            - EJS templates
  partials/       - reusable template partials
public/           - static assets (CSS, JS)