概要
Dashingの後継であるSmashingをUbuntuで起動させるまでに、いろいろとエラーを解消しながら行いました。
その記録です。
環境
- Ubuntu22.04
- ruby 3.0.2
- Smashing 1.3.6
インストールの大まかな手順
- Ubuntuのセットアップ
- rubyのインストール
- OpenSSLのインストール
- NodeJSのインストール
- Smashingのインストール
基本的に以下の公式ページに手順が書いてあります。
Installation
rubyのインストール
sudo apt-get install ruby-full
OpenSSLのインストール
apt install build-essential libssl-dev
NodeJSのインストール
JavascriptのRuntimeが必要なためインストールします。
こちらは公式ページの手順には書いてなかったのですが、Issueにありました。
apt-get install nodejs
Smashingのインストール
# Install bundler
gem install bundler
# Install smashing
gem install smashing
# Create a new project
smashing new my-project
# Change Directory into the project
cd my-project
# Install the bundle of project specific gems
bundle
# Start the example dashboard!
smashing start
以上です。