Code Monkey home page Code Monkey logo

Build Status

Project Setup

Spin up the Vagrant box

  • During the provising process you will need to enter your system administrator password for the NFS share mount

    1. vagrant up
    2. vagrant ssh
    3. cd workspace

Install Dependencies and Setup Database

  • Run setup.sh OR run the following
$ bundle install
$ bundle exec rake db:drop db:create db:migrate db:seed
$ RAILS_ENV=test bundle exec rake db:drop db:create db:migrate

Start the local server

$ bundle exec puma

Go to the local site through Okta Preview View the dev site locally at http://localhost:3000/

Run the test suite

  • All the tests (javascript + rspec)
    • $ bundle exec rake spec:ci
  • All the rspec tests
    • $ bundle exec rspec
  • One rspec test file
    • $ bundle exec rspec spec/.../..._spec.rb
  • One rspec test block
    • $ bundle exec rspec spec/.../..._spec.rb:40
  • Run the Jasmine tests
    • $ RAILS_ENV=test bundle exec rake spec:javascript
    • To run a single test: $ RAILS_ENV=test bundle exec rake spec:javascript SPEC=my_test
  • See the wiki for a guide on Manual Testing
  • You can run the functional tests on your local machine (not vagrant) to debug them in Firefox

Deploying the ReviewSite to Heroku

When deploying to a new Heroku instance, please specify e-mail account settings in the following configuration variables.

Account details for sending emails from:

  • MAIL_SERVER=smtp.gmail.com
  • MAIL_PORT=587
  • MAIL_DOMAIN=thoughtworks.org
  • [email protected]
  • MAIL_PASSWORD=<password>
  • MAIL_TLS=true

The Address that should appear in the "from" line of the sent e-mails:

The base domain that should be used for the links that appear in the emails.

  • DOMAIN=twreviewsite.herokuapp.com

In order to prevent the mailer from sending e-mail on non-production heroku instance, it is possible to redirect all e-mail to an address that you control.

Questions?

Any dev questions can be sent to [email protected] and it will be seen by all members of the Review Site team.

reviewsite's Projects

reviewsite icon reviewsite

Rails app to track reviews for Associate Consultants

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.