From 1b5ea95633912282ea45c766e60853dc957398d0 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 25 Jul 2017 22:54:40 +0200 Subject: Initial commit. First version of tutorial. Includes: * Prerequisite installation procedures * Project setup * Ice Cream model and page display * Authentication * Creating a model via the interface * A Rails command reference Desired additions: * Editing ice creams (only by users who created them) * Comments on ice creams * Ratings of ice creams * Maybe some info about the asset pipeline --- 001-Setup.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 001-Setup.md (limited to '001-Setup.md') diff --git a/001-Setup.md b/001-Setup.md new file mode 100644 index 0000000..7dc10ca --- /dev/null +++ b/001-Setup.md @@ -0,0 +1,19 @@ +Setup +===== + +1. Créez une nouvelle application Rails: + + $ rails new deux_scoops --database postgresql --skip-test + +2. Remplacez le contenu de `bin/setup` avec: + + #!/bin/sh + + set -e + + gem install bundler --conservative + bundle check || bundle install + + bundle exec rails db:setup + +3. Initialisez la base de données avec : `./bin/setup` -- cgit v1.2.3