Skip to content

Pjaerr/Pub-Name-Generator

Repository files navigation

Pub-Name-Generator

Generates random pub names by grabbing a collection of random nouns or adjectives from a text file, choosing a random format and then updating the DOM with the combination when spacebar is pressed or the screen is clicked/tapped.

Created using HTML, CSS and JavaScript

Developing Locally

  1. Clone the repository
  2. Run npm install
  3. Run npm start
  4. Open the index.html file on a local server

The JavaScript from the main.js is minified and then transpiled into code that will run on older browsers, this is what the grunt tasks are for. The CSS is just normal CSS and can be edited directly in the main.css file.

Pub Name Formats

The noun and noun (The Swan and Goose) The noun bodypart (The Kings Arms, Head, Feet, Legs, Hands) The adjective noun (The Old Horse) The noun (The Globe)