Install jets via RubyGems.
gem install jets
Prerequisites and Dependencies
Jets uses Ruby 2.5, and code written with patch variants of it should also work.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash # note follow the instructions after the curl command to source nvm nvm install v12.13.0 nvm alias default node # sets the default version
Once node is installed, install yarn with:
npm install -g yarn
You can use any version of yarn that works with webpacker. If you run into webpacker issues, try upgrading node and yarn to the latest version.
By default, when you run a
jets new command, Jets calls
bundle install and attempts to install the
mysql2 gem. If you want to use PostgreSQL, run
jets new --database=postgresql. Make sure that you have MySQL or PostgreSQL installed beforehand.
If you don’t need an ORM database adapter, or want to use another database, use the
jets new --no-database option. You can subsequently add any datastore adapter gem to the Gemfile, and run
Here are the instructions to install MySQL and PostgreSQL:
brew install mysql # macosx yum install -y mysql-devel # amazonlinux2 and redhat variants apt-get install -y libmysqlclient-dev # ubuntu and debian variants
brew install postgresql # macosx yum install -y postgresql-devel # amazonlinux2 and redhat variants apt-get install libpq-dev # ubuntu and debian variants
The AWS CLI is required. You can install the AWS CLI via pip.
pip install awscli --upgrade --user
Then configure it.
Pro tip: Use the <- and -> arrow keys to move back and forward.