This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
rbenv install 2.5.1
rbenv local 2.5.1
nodebrew install-binary v9.11.1
nodebrew use v9.11.1
ref. https://yarnpkg.com/en/docs/install
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get -y install yarn
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
sudo yum install -y yarn
sudo docker run -d --restart=always -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -p 13306:3306 mysql:5.7.22
# Copy .env.example to .env and edit it
# or
# run following commands
export DB_HOST=127.0.0.1
export DB_PORT=13306
bin/bundle install
# or
bin/bundle install --path vendor/bundle
bin/yarn install
bin/rails db:setup
bin/webpack-dev-server
bin/rails s -b 0.0.0.0
bin/rails assets:precompile
JS, CSS and some other files are created in public/packs
.