Categories
Blog

Ubuntu – Install Elasticsearch HQ

Environment: Ubuntu 18.04 Download zip file from ElasticHQ  official repository. sudo apt install python3 Extract zip file, then open terminal in root folder of source: pip3 install -r requirements.txt python3 application.py Access site from address: http://localhost:5000

Categories
Tutorials

Ruby on Rails – React – Redux

Thêm React vào project RoR 1. Cài gem react-rails và mysql2 rails new <project_name> –webpacker -db mysql gem install react-rails gem install mysql2 2. Bổ sung webpacker và react-rails vào Gemfile, sau đó thực thi cài đặt: cd <project_name> bundle install rails webpacker:install # OR (on rails version < 5.0) rake webpacker:install rails webpacker:install:react # […]

Categories
Tutorials

Bắt đầu với Ruby on Rails

Cài đặt môi trường: Ubuntu (Linux): https://gorails.com/setup/ubuntu/18.04 Windows: http://railsinstaller.org/en Tài liệu tham khảo Ruby: http://ruby-doc.org/core-2.5.1/ Rails https://edgeguides.rubyonrails.org/ Rails và Reactjs: https://github.com/reactjs/react-rails Rails và webpacker https://github.com/rails/webpacker Truy vấn danh sách browserslist https://github.com/browserslist/browserslist http://browserl.ist Tạo project với Ruby on Rails (RoR) rails new <project_name> –webpacker -db mysql Vd: rails new demo Khởi động webserver để kiểm tra […]