NVTT
Noosphere Ventures test task
Content
Task 1
Simple authentication application. Written in Ruby and Sinatra framework.
Demo
View demo.
Username: john
Password: 000
How to run locally
-
Clone this repository:
$ git clone https://github.com/webzepter/nvtt
-
Change directory to task1:
$ cd nvtt/task1
-
Install bundler gem:
$ gem install bundler
-
Install project dependencies:
$ bundler install
-
Run server:
$ bundle exec rackup
Application will be available at http://localhost:9292
Database resetting
If you need to reset database, run:
$ bundle exec rake seed
Tests
To run tests you need execute:
$ bundle exec rake
Task 2
Simple MySQL 5.5 database with 3 table and 5 stored procedures.
Database dump task2/database.sql
contains test data and stored procedures "task1" - "task5".
How to import:
$ mysql -u <user> -p < task2/database.sql
Task 3
Simple non-empty quines without I/O functions, written in Ruby and PHP
Demo
How to run locally:
-
Install ruby and php.
-
Clone this repository
$ git clone https://github.com/webzepter/nvtt
-
Run ruby quine
$ ruby task3/quine.rb
-
Run php quine
$ php task3/quine.php
Task 4
Small JavaScript library, which provide number to text converter.
Can be used in browser and NodeJS.
Written in CoffeeScript. Source located in task3/source. Tests are written in CoffeeScript using Mocha.js
Demo
Follow link.
How to run locally:
-
Install node.js. I recommend NVM.
-
Clone this repository
$ git clone https://github.com/webzepter/nvtt
-
Change directory to task3:
$ cd nvtt/task3
-
Install project dependencies:
$ npm install
-
Run build:
$ npm run build
-
Open
demo.html
page in browser.
Tests
To run tests you need execute:
$ npm test
Copyright
This project is released under the MIT license
Copyright (c) 2015 Serhij Korochanskyj.
See LICENSE.txt for further details.