Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.41 KB

File metadata and controls

64 lines (43 loc) · 1.41 KB

Programming Jokes Website

This is a simple web application that generates random programming jokes using the JokeAPI. Users can enter their name and receive a two-part programming joke. The site is built with Node.js, Express, EJS, and styled with CSS.

Features

  • Enter your name and get a random programming joke.
  • Clean, responsive design.
  • Error handling for empty name input.

Getting Started

Prerequisites

  • Node.js installed on your machine.
  • npm (comes with Node.js).

Installation

  1. Clone the repository or download the source code.

  2. Install dependencies:

    npm install

Running the Server

Start the server using nodemon for automatic restarts on code changes:

nodemon index.js

Or, to run without nodemon:

node index.js

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

Usage

  1. Open your browser and go to http://localhost:3000.
  2. Enter your name in the input field.
  3. Click "Generate A Joke" to receive a programming joke.

Project Structure

Jokes Website/
├── index.js
├── package.json
├── public/
│   └── styles/
│       └── main.css
└── views/
    └── index.ejs

License

This project is for educational purposes.