Homework for the Generasi GIGIH Intermediate level.
LEARNING
- Ruby
- MySQL/MariaDB
- Ansible
- Vagrant
- VirtualBox
- mysql2
- rspec
- simplecov
- sinatra
- sinatra-contrib
- thin
- travis
- ubuntu/focal64
- Clone this repository to your desired location.
$ git clone https://github.com/rgxcp/GGIntermediate.git
- Change your directory into project.
$ cd GGIntermediate
- Run the script.
$ ruby /path/to/file.rb
- Do-what-you-want-with-it!
$ ruby module1/session1/app.rb
$ ruby module1/session2/app.rb
$ ruby module3/session1/router.rb
$ cd module3/session3
$ rackup -p 4567
$ cd module4/session3
$ rspec -fd spec/controllers/categories_controller_spec.rb
$ rspec -fd spec/controllers/category_items_controller_spec.rb
$ rspec -fd spec/controllers/items_controller_spec.rb
$ rspec -fd spec/models/category_spec.rb
$ rspec -fd spec/models/item_spec.rb
$ cd module5/session2
$ vagrant init ubuntu/focal64
# Vagrantfile
Vagrant.configure("2") do |config|
config.vm.network "private_network", ip: "192.168.20.21"
end
$ vagrant up
$ vagrant ssh
$ scp -i .vagrant/machines/default/virtualbox/private_key bundle.tar.gz vagrant@192.168.20.21:/home/vagrant/app
$ ansible-playbook --inventory inventory.yml --user vagrant --private-key .vagrant/machines/default/virtualbox/private_key playbook.yml
#NeverForget #NeverRegret