Code Monkey home page Code Monkey logo

htw's Introduction

HTW

Halloween Treats Worldwide Rails App - Example App for Lecture and Basis for Rails Exercises

Build Status

See Exercise 06 - First Rails Steps

Rails Dash - App Creation

Here's my bash history with all the commands I ran in the lecture:

506  mkdir ss2014
507  cd ss2014
508  rails new HTW
512  cd HTW/
514  ls -lart
515  less .gitignore
516  git init
517  git status
519  git add .
520  git commit -m "rails new"
521  rails server

(stopped rails server with ctrl-c)

523  rails s

(second window, as rails server runs in first)

503  cd ss2014/HTW/
504  open http://0.0.0.0:3000
522  git checkout -b scaffold
505  rails generate
506  rails generate scaffold Pumpkin type:string color:string size:integer  price:decimal
507  git add .
508  git commit -m "rails g scaffold Pumpkin"
509  git status
510  bin/rake db:migrate RAILS_ENV=development
511  git status
512  git add .
513  git commit -m "db:migrate"
514  subl .
515  git status
516  ls
517  rake db:rollback
518  subl .
519  rake db:migrate
520  rake routes
521  subl config/routes.rb
522  rails onsole
523  git status
524  rails c
525  rails g migration ChangeTypeColumnInPumpkins name:string
526  subl db/migrate/20140613150414_change_type_column_in_pumpkins.rb
527  rake db:migrate
528  git status
529  less db/schema.rb
530  git add .
531  git commit -m "changed type column to name"
532  rake
533  rake
534  git add .
535  git commit -m "replaced occ. of type with name, tests running"
536  git status
537  git checkout master
538  git lg1
539  git merge scaffold
540  git lg1
541  git remote add origin [email protected]:htw-imi-info3/HTW.git
542  git push origin master
543  history

htw's People

Contributors

bkleinen avatar beerchili avatar floriandietsch 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.