ruby 2.4.4rails 2.5.2Mysql ver 14.14 Dist 5.7.24 for Linux (x86_64) using EditLine wrapper
$ wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
$ sudo apt-get install apt-transport-https
$ echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
$ sudo apt-get update && sudo apt-get install elasticsearchSearch for the initialization file of elasticsearch
$ sudo nano /etc/elasticsearch/elasticsearch.ymlChange the line # network.host: 192.168.x.x to the uncommented network.host: 0.0.0.0, then uncomment # http.port: 9200
Restart the elasticsearch service
$ sudo systemctl restart elasticsearchRequires Java JDK-8 (min)
- Mysql2
- For dev: Annotate, SearchKick
- For test: RSpec, Factory Bot, Faker, DatabaseCleaner, Shoulda Matchers, Rails Controllers Testing, Simple Coverage
First create an environment_variables.yml file
mv environment_variables.example.yml environment_variables.ymlThen, substitute all the values of the variables
Install dependencies
bundle installSetup the database
bundle exec rails db:create db:migrate db:seedInit the server
bundle exec rails sbundle exec rspecSet environment variables on environment_variables.yml under the deployment key (watch environment_variables.example.yml)
bundle exec rails s and visit the Api Documentation page