Skip to content

πŸ’ͺ [LEARNING] Generasi GIGIH Intermediate Level Homeworks

License

Notifications You must be signed in to change notification settings

rgxcp/GGIntermediate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

60 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’ͺ GGIntermediate

Homework for the Generasi GIGIH Intermediate level.

Status

LEARNING

Requirement(s)

  1. Ruby
  2. MySQL/MariaDB
  3. Ansible
  4. Vagrant
  5. VirtualBox

Gem(s)

  1. mysql2
  2. rspec
  3. simplecov
  4. sinatra
  5. sinatra-contrib
  6. thin
  7. travis

Vagrant Box(es)

  1. ubuntu/focal64

How to Use

  1. Clone this repository to your desired location.
    $ git clone https://github.com/rgxcp/GGIntermediate.git
  2. Change your directory into project.
    $ cd GGIntermediate
  3. Run the script.
    $ ruby /path/to/file.rb
  4. Do-what-you-want-with-it!

Guides

$ 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

What an amazing experience. Thanks everyone!

#NeverForget #NeverRegret

About

πŸ’ͺ [LEARNING] Generasi GIGIH Intermediate Level Homeworks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published