SergeyKorochansky / nvtt

Noosphere Ventures test task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Install ruby and node.js. You can use RVM and NVM

  2. Clone this repository:

    $ git clone https://github.com/webzepter/nvtt
    
  3. Change directory to task1:

    $ cd nvtt/task1
    
  4. Install bundler gem:

    $ gem install bundler
    
  5. Install project dependencies:

    $ bundler install
    
  6. 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:

  1. Install ruby and php.

  2. Clone this repository

    $ git clone https://github.com/webzepter/nvtt
    
  3. Run ruby quine

    $ ruby task3/quine.rb
    
  4. 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:

  1. Install node.js. I recommend NVM.

  2. Clone this repository

    $ git clone https://github.com/webzepter/nvtt
    
  3. Change directory to task3:

    $ cd nvtt/task3
    
  4. Install project dependencies:

    $ npm install
    
  5. Run build:

    $ npm run build
    
  6. 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.

About

Noosphere Ventures test task

License:MIT License


Languages

Language:Ruby 60.3%Language:CoffeeScript 35.6%Language:CSS 3.4%Language:PHP 0.7%