Node Hangman

Node Hangman

This week’s project returns to Node programming, so there’s no deployment or GUI. The project requirements including creating a game of Hangman using exported JavaScript Constructors as the main drivers of the app. User input was required to be handled with the Inquirer package.

Before starting, I knew I wanted to pull movie titles from the OMDB API instead of creating an array of my own puzzles. Since this would be outside of the normal promise of Inquirer, I needed to make sure it loaded the returned data before moving forward with the code. I added a few fun messages while you wait.

To accomplish the goal of creating modular code that can be re-used, I was able to lift the Big Letters from the LIRI app and use them again here without editing any of the original code. I’m quite pleased with the results!

As a server side app without a client-side export, this doesn't actually have a live deployment. If you want to play it for yourself, visit my portfolio (http://www.fullstacksteve.com/portfolio/node-hangman/), download the code, and follow the instructions in the README file to get started. It's tons of fun!

To view or add a comment, sign in

More articles by Steve Marshall

  • MAP, FILTER, REDUCE: KEYS TO THE REACT KINGDOM

    My mentor informed me that before I dive headfirst into React, I need to be intimately familiar with the map, filter…

    2 Comments
  • Scraping, Storing, and Staying Up Late

    As I'm writing this, I have just completed my latest project, an eSports News Web Scraper. It pulls headlines from a…

  • TEST YOUR APP BEFORE YOU CREATE IT

    I have created dozens of extensive web applications over the years, including professional websites, job application…

  • SEQUELIZE: THE RE-MAKING OF STEVE’S SLIDERS

    Last week, I created one of the most complicated and difficult apps I’ve ever written. It was a full stack Node JS app…

    2 Comments
  • STAYING PURE: A FUNCTIONAL LIFE LESSON

    In general, I like things that are functional before they’re beautiful. I’m not making some kind of clever programming…

  • Attack Of The CSS

    Star Wars: Duels Of The Masters is my first project involving JavaScript Objects. Each character has its own set of…

Explore content categories