$ git clone 'https://github.com/unoduetre/juice.git'
$ cd juice
- Click here and generate the API key.
- Copy the
.env.example
file.
$ cp .env.example .env
- Edit the
.env
file and follow the comments there.
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
Do:
$ bundle
$ yarn
Do:
$ ./bin/rails db:setup
$ ./bin/rails db:migrate
$ RAILS_ENV=test ./bin/rails db:migrate
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.
Do:
$ ./bin/dev
Separately start sidekiq
:
$ ./bin/sidekiq
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.