Skip to content

MVP database access layer LWdb and Jasmine spec/test environment

Pre-release
Pre-release
Compare
Choose a tag to compare
@hhzl hhzl released this 06 Dec 11:42
· 199 commits to master since this release

Aim

The aim of this release is to have the project set up with a Jasmine test environment which works both in the browser and with node on the command line.

In addition a minimally useful set of methods to access the words and settings database has been defined.

See API 1 in the diagram here https://github.com/hhzl/LearnWords2

Setup

git clone https://github.com/hhzl/LearnWords2.git
cd LearnWords2
npm install -g grunt-cli
npm install

Note that maybe you have to do

sudo npm install -g grunt-cli
sudo npm install

Test and build

npm test runs the Jasmine specs and tests on the command line.

npm start does grunt,

npm test does scripts/test.js,