Skip to content

shouhengli/coding-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Network Data Visualisation Coding Test

The original requirements and files are put into the original directory.

Prerequisite

  • Yarn
  • Clone or unzip the repo

Getting started

yarn install

Start the server:

yarn  server

Visit http://localhost:3000 in a browser

Developing

This application is written using a TDD approach. Therefore it is important to insure that when changes are being made, suitable tests are created and/or modified. A test runner can be started to listen for changes and re-run the test suite when changes occur.

Server Dev

Server is written using Express and Node.js.

yarn server-watch

This will run through the test suite and if all green will start the server.

To run the server in development mode (un-bundled) use:

yarn server-start
Client Dev

Client is written using Ember.js and Ember-Cli.

yarn client-watch

This will run through the test suite. By default the tests are run again both PhantoJs and Chrome.

yarn client-coverage

This will produce test coverage reports in HTML, they can be viewed in directory client/coverage

yarn client-build

This will produce bundled, "babelized" and minified distrubutable scripts in server/assets, these files will be served statically by server.

To run the client in development mode (un-bundled) use:

yarn client-start

This will spin up a liveload server with port 4200.

Releases

No releases published

Packages

No packages published