Giter Site home page Giter Site logo

sinatra_practices's Introduction

Sinatra Memo App

このアプリケーションはSinatraを使用して簡単なメモを管理するためのものです。メモの追加、表示、編集、削除が可能です。

前提条件

このアプリケーションを実行するには、Rubyがインストールされている必要があります。

セットアップ手順

以下の手順に従ってアプリケーションをセットアップしてください。

1. リポジトリのクローン

まず、このリポジトリをあなたのローカルマシンにクローンします。

git clone [リポジトリのURL]
cd [クローンしたディレクトリ]

2. 必要なGemのインストール

必要なGemをインストールします。

  • sinatra
  • rubocop-fjord
  • erb_lint

3. Lintの実行

コードの品質を確保するために、Lintを実行します。ERBファイルのLintチェックにはerb_lintを、その他のRubyファイルにはrubocopを使用します。

ERBファイルのLintチェックを行うには、以下のコマンドを実行します。

erb_lint --lint-all

Rubocopを使用してRubyファイルのフォーマットを行うには、以下のコマンドを実行します。

rubocop -A

これにより、コードのスタイルとフォーマットが自動的に修正されます。

4. アプリケーションの実行

セットアップが完了したら、以下のコマンドを実行してアプリケーションを起動します。

ruby app.rb

デフォルトでは、アプリケーションはhttp://localhost:4567でアクセス可能です。

sinatra_practices's People

Contributors

ryzhon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.