Giter Club home page Giter Club logo

juice's Introduction

Juice Technical Test

Setup

Clone the repository

$ git clone 'https://github.com/unoduetre/juice.git'
$ cd juice

Retrieve Alpha Vantage API key

  1. Click here and generate the API key.
  2. Copy the .env.example file.
$ cp .env.example .env
  1. Edit the .env file and follow the comments there.

Install ruby and node

I assumed you use rbenv and nodenv for (respectively) ruby and node version management. If you use other tools, change the following lines accordingly.

Do:

$ rbenv install
$ nodenv install

Install packages

Do:

$ bundle
$ yarn

Initialize the database

Do:

$ ./bin/rails db:setup
$ ./bin/rails db:migrate
$ RAILS_ENV=test ./bin/rails db:migrate

Run tests

Run the tests to check, if you have set up the application correctly.

To run server-side tests, do:

$ ./bin/rspec

To run client-side tests, do:

$ yarn test

If all tests pass, the application has been set up succesfully.

Start the application

Do:

$ ./bin/dev

Separately start sidekiq:

$ ./bin/sidekiq

How to use

External API calls are made every 5 minutes.

After entering the stock symbol, e.g. "IBM" or "CAN", you should wait 5 min. until the data is populated from the API.

Internal API calls are made every 3 seconds.

The last column is the volume.

juice's People

Contributors

unoduetre avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.