Skip to content

Latest commit

 

History

History
48 lines (25 loc) · 1.16 KB

README.md

File metadata and controls

48 lines (25 loc) · 1.16 KB

Magic 8 Ball

A simple nodejs application that mimics a Magic 8 ball.

Uses express.js to serve a static html page.

The ball is drawn with css and the animation is also done using css.

Note: this project also contains a Dockerfile (because why not).

To Run

1. Install Nodejs

Install nodejs using the instructions here.

2. Install dependencies (express.js)

The project contains a package.json file that has the dependency declared. The only thing to do is run:

username$ npm install

Info about package.json can be found here.

3. Run

username$ node server.js

You should see a message that states: "Magic happens on port 8080". That means the server is running and you can access it at: http://localhost:8080/!

To get a prediction hover your mouse over the ball!

Screenshot of the app: