Skip to content

hellkat1911/magic-8-ball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magic 8-Ball 🎱

A magic 8-ball emulator web app.


Dependencies

  1. Nodemon - automatically restarts the server after code changes & errors
  2. Mocha - unit testing
  3. Chai - a BDD / TDD assertion library for unit testing

The production app requires zero dependencies, except for Node.js to be installed on the target system (version 12.16.2 preferred).

Setup

  1. Clone the app from the repo
  2. Run npm install to install dependencies
  3. Run one of the scripts listed below to start the app

Scripts

npm run dev

Spins up the server and watches for changes to server-side code.

Port is set to 21337.

npm run start

Kicks off the Node server for a production environment.

npm run test

Run the included unit tests for the "history" API.


author: Justin Yarbrough