Monday, April 29, 2024
HomeRuby On RailsHome windows and WSL | Drifting Ruby

Home windows and WSL | Drifting Ruby


# Home windows Terminal
wsl --list --online
wsl --install -d debian
debian
# Debian Terminal
sudo apt replace && sudo apt improve -y
# Set up Oh-My-ZSH
sudo apt set up curl git zsh
sh -c "$(curl -fsSL https://uncooked.githubusercontent.com/ohmyzsh/ohmyzsh/grasp/instruments/set up.sh)"
# Set up ASDF
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0

supply ~/.zshrc
# ~/.zshrc
supply ~/.devrc
# ~/.devrc
. "$HOME/.asdf/asdf.sh"
export RUBY_YJIT_ENABLE=1
# Putting in Ruby

asdf plugin add ruby

sudo apt-get set up autoconf patch build-essential rustc libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libgmp-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev -y

asdf set up ruby 3.3.0
asdf world ruby 3.3.0

gem replace --system
echo 'gem: --no-document' >> ~/.gemrc
gem set up rails
# Putting in Node
asdf plugin add nodejs
asdf set up nodejs newest
asdf world nodejs newest
npm -g set up yarn
# Making a Rails app
echo '--javascript esbuild' >> ~/.railsrc
echo '--css bootstrap' >> ~/.railsrc
echo '-a propshaft' >> ~/.railsrc
rails new instance
# Putting in Apps
winget search -q "Visible Studio Code"
winget set up Microsoft.VisualStudioCode
winget search -q "Google Chrome"
winget set up Google.Chrome
# Putting in different dependencies
sudo apt set up libpq-dev libmariadb-dev -y
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments