Skip to content

Instantly share code, notes, and snippets.

@StandardNerd
Last active September 26, 2017 20:10
Show Gist options
  • Save StandardNerd/49315080c348c49bcf8493f03f36be26 to your computer and use it in GitHub Desktop.
Save StandardNerd/49315080c348c49bcf8493f03f36be26 to your computer and use it in GitHub Desktop.
sudo apt-get install tmux build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
# generating ssh key
ssh-keygen -t rsa -b 4096 -C "joon.ch@gmail.com"
# add generated ssh key id_rsa.pub to repository/account
# install chruby https://github.com/postmodern/chruby
wget -O chruby-0.3.9.tar.gz https://github.com/postmodern/chruby/archive/v0.3.9.tar.gz
tar -xzvf chruby-0.3.9.tar.gz
cd chruby-0.3.9/
sudo make install
# install ruby-install https://github.com/postmodern/ruby-install#readme
wget -O ruby-install-0.6.1.tar.gz https://github.com/postmodern/ruby-install/archive/v0.6.1.tar.gz
tar -xzvf ruby-install-0.6.1.tar.gz
cd ruby-install-0.6.1/
sudo make install
# install Ruby 2.3.4
ruby-install ruby 2.3.4
# Add the following to the ~/.bashrc or ~/.zshrc file:
source /usr/local/share/chruby/chruby.sh
chruby ruby-2.3.4
# install PostgreSQL
sudo apt-get install libpq-dev
sudo apt-get install postgresql postgresql-contrib
# create Postgres User
sudo -u postgres createuser --interactive
# create Postgres Database
createdb moinmoin
# add Javascript Runtime
sudo apt-get install nodejs
gem install rake
gem install rails
gem install bundler
# install yadr
sh -c "`curl -fsSL https://raw.githubusercontent.com/skwp/dotfiles/master/install.sh `"
# initialisiere neues Rails Projekt mit DB PostgreSQL und ohne Test/Unit (wir verwenden RSpec)
rails new moinmoin -T --database=postgresql
cd moinmoin
# in config/database.yml
default:
username: moinmoin
password: postgresql-password
# in Gemfile hinzufügen:
gem 'high_voltage', '~> 3.0.0'
gem 'trestle'
bundle install
# in Terminal:
rails generate trestle:install
# install Webpacker add webpacker gem in Gemfile and then
bundle exec rails webpacker:install
bundle exec rails webpacker:install:vue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment