Because of offset_fetch, you will need SQL Server 2012+
CREATE DATABASE heisenberg
GO
USE heisenberg
GO
CREATE TABLE Posts(
Id int IDENTITY(1,1) NOT NULL,
Title nvarchar(100) NOT NULL,
Description nvarchar(max) NOT NULL,
PRIMARY KEY(Id)
)
GO
First of all, you need to have Node.js:
and the global dependencies:
- Gulp
- Bower
- CoffeeScript
npm install -g gulp bower coffee-script
and finally, the local dependencies:
npm install gulp && npm install && bower install
Now run gulp
and your app is ready to use! :)
Get Mocha:
npm install -g mocha
After this, configure your database test in /test/dal/database.coffee
Now you're ready to run the tests:
npm test
If you want to run a specifc kind of test, see below.
- DAL:
mocha test/dal
- API:
mocha test/api
- TODO: TODO
TODO