diff options
author | Teddy Wing | 2017-07-25 22:54:40 +0200 |
---|---|---|
committer | Teddy Wing | 2017-07-25 22:54:40 +0200 |
commit | 1b5ea95633912282ea45c766e60853dc957398d0 (patch) | |
tree | cd582c66e8fb1522e147064301b30baa8307fac5 /001-Setup.md | |
download | Deux-Scoops-Rails-Tutorial-1b5ea95633912282ea45c766e60853dc957398d0.tar.bz2 |
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
Diffstat (limited to '001-Setup.md')
-rw-r--r-- | 001-Setup.md | 19 |
1 files changed, 19 insertions, 0 deletions
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` |