Git Product home page Git Product logo

ghost-js's Introduction

# Ghost Game

This was a solution to a programming challenge for an interview, practically the first thing I'd ever done in node.js

The solution is divided into two parts: server and client. They are found in server/ and client/ respectively.

Server

The server requires Hapi.js to work, which can be installed using

  npm install hapi

To start the server, use

  node server.js

It will start the server on port 8000, localhost. The host and port can be changed at the top of server.js

Running unit tests requires nodeunit. Install it with

sudo npm install nodeunit -g

To run the unit tests, enter

nodeunit test-ghost-server.js

or use Jasmine. Install it with

sudo npm install jasmine-node -g

then run it with

jasmine-node .

Note: Jasmine specs are incomplete. They do provide better isolation, however, by using spies.

Client

Open index.html in Chrome and everything should be working.

The access point URL is configurable at the top of js/ghost.js

ghost-js's People

Contributors

dkavassy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.