- Make a folder for your project:
$ mkdir ruby_project
- Getting started with bundler is easy! Open a terminal window and run this command:
$ gem install bundler
- cd into the project and run this command
$ bundle init
- This will create a Gemfile : where you can store all the dependencies that you want to use for the project.
- Open the Gemfile in your IDE and add dependencies
$ gem 'rspec', '~> 3.8'
$ gem 'pry', '~> 0.10.4'
-
Run $
bundle install
to install all your dependencies. -
This will create a Gemfile.lock file where you can find all your dependencies.
-
create a lib and spec folder
$ mkdir lib
$ mkdir spec
Go on with your project!