lunaroverlord / nodejs-techtest

A demo-project for HomeTouch on node.js

Home Page:http://olafs.eu:3000

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node.js test

http://olafs.eu:3000

Installing

The default settings allow you to run it with the database hosted on my server. ###Own database: To run your own DB, set up a MySQL server and import techtest/techtest.sql. Configure access credentials in db.js, this line:

connString = "mysql://techtest:zzraELJXa9nDUjGV@108.61.173.171:3306/techtest";

Format: protocol://user:password@host:port/database

Running

npm install
./run.sh

To stop the server, ./kill.sh

Running tests

Mocha needs to be installed globally sudo npm install mocha -g then run mocha

Bugs

  • Skill lookups are case-sensitive; this requires a change of ORM
  • Skills can't be numbers (I don't think anyone needs that, but still)
  • Minor hiccups on the skills/postcode inputs -- need to be ironed out

Tech

Todo

  • Write carer registration tests (need fixtures)
  • jslint checklist

About

A demo-project for HomeTouch on node.js

http://olafs.eu:3000


Languages

Language:JavaScript 85.5%Language:HTML 9.5%Language:CSS 4.1%Language:Shell 0.8%