Skip to content

Simple NodeJS application that mimics a magic 8 ball

License

Notifications You must be signed in to change notification settings

sinzianag/magic8ball

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Simple NodeJS application that mimics a magic 8 ball

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published