Only another karaoke application.
- Redis
- Mysql
-
Install mysql lib
-
In Arch
sudo pacman -S libmysqlclient
-
In Debian
sudo apt-get install libmysqlclient-dev
-
-
Clone repository
git clone https://github.com/adrianmarino/karajoker.git
-
Go to karajoker
cd karajoker
-
Install dependencies
bundle install
-
Start MySQL server
bundle exec rake mysql:start
-
Setup on bashrc:
export DB_HOSTNAME="localhost" export DB_USERNAME="root" export DB_PASSWORD="Your password"
-
Open a new bash session
-
Setup db
-
Get db username and password
bundle exec rake db:config
-
Create schema (Require password)
bundle exec rake db:create-schema
-
Migrate schema
bundle exec rake db:migrate
-
-
Check whether the application works perfectly, runing all test (Optional)
bundle exec rake
-
Start redis
bundle exec rake redis:start
-
Start sidekiq worker (On other bash session)
bundle exec rake sidekiq:start
-
Run application
bundle exec rails server
-
Find and index top karaokes
-
Index first 10 songs from a top 100 songs chart at 2015 (This cloud take many time):
bundle exec rake job:index[10,2015..2015,3000]
-
Index all songs of top 100 songs charts from 1970 to 2015 (This cloud take days):
bundle exec rake job:index[100,1970..2015,3000]
Notes * Last parameter is the application port. * On zsh session user \ before [ or ].
-
-
Monitor index process with Sidekiq.
-
Go to Karajoker
- Docker 1.9.1
- Docker Compose 1.5.1
-
Build images: This action is required after some changes on kararajoker application to update these on the docker container.
bundle exec rake docker:build
-
Start containers
bundle exec rake docker:start
-
Setup db
-
Get container id of karajoker_karajoker
docker ps
-
Open a bash session on karajoker_karajoker container
docker exec -it CONTAINER_ID bash
-
Get db user and password
bundle exec rake db:config
-
Create schema (Require password)
bundle exec rake db:create-schema
-
Migrate schema
bundle exec rake db:migrate
-
-
Find and index top karaokes
bundle exec rake job:index[10,2015]
-
Config greylog input (only one time):
- Sign in:
- Username: admin
- Password: password
- Menu System -> Input
- Select "GELF UDP" input type
- Launch new input
- Title: Karajoker
- Launch
- Sign in:
-
Monitor index process with:
-
Go to Karajoker