GithubHelp home page GithubHelp logo

tdd-is-not-dead's Introduction

tdd-is-not-dead

Getting started: reproduce the rails application

  1. Create an image:

     $ docker build -t rails-tdd .
    
  2. If from Scratch generate application files:

     $ docker run --rm -i --name rails-start -v $(pwd):/usr/src/app -w /usr/src/app -p 3000:3000 rails-tdd /bin/sh
     $ rails new ruby-app
     $ cd ruby-app
     $ rails generate scaffold Employees name:string email:string
     $ exit
    
  3. Install application and create database schema:

     $ docker run --rm -i --name rails-start -v $(pwd):/usr/src/app -w /usr/src/app/ruby-app -p 3000:3000 rails-tdd /bin/sh
     $ bundle install
     $ rake db:migrate
    
  4. Save this state on another command line:

     $ # identify id of the container:
     $ docker ps
     $ # tag the container as a new version of the image:
     $ docker commit <containerId> rails-tdd:bundle-installed
    
  5. Go back to your docker app:

     $ exit
    
  6. Run the rails application:

     $ docker run -d --name rails-server -v $(pwd):/usr/src/app -w /usr/src/app/ruby-app -p 3000:3000 rails-tdd:bundle-installed /usr/local/bundle/bin/rails server
    

TODO

Feedback BBL Crafts:

  • Détailler les arguments dans l'historique de la polémique (Qui sont-ils ? Que disent-ils ?)
  • Agenda : on comprend pas trop
  • Jugement des arguments (tampon, on valide !)
  • Faire participer la salle !

tdd-is-not-dead's People

Contributors

seblm avatar ericlemerdy avatar

Watchers

 avatar  avatar

tdd-is-not-dead's Issues

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.