Giter Site home page Giter Site logo

list-test's Introduction

Galvanize Todo

This is a simple todo list application. There is are todo lists, and todo items associated with those lists. It is a Ruby on Rails application, and it uses Capybara and Jasmine for its testing suite.

## Initial Setup:

### DB

Most machines come with SQLite built in, but if you don't, install it. You'll need SQLite3.
https://www.sqlite.org/

### Install Homebrew

`/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`

`$ brew install gpg

### Install RVM:

`$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3`

    `$ \curl -sSL https://get.rvm.io | bash -s stable`

if rvm has an error about the dotfiles

`$ rvm get stable --auto-dotfiles`

Run source rvm command. (command is specified in output of previous command)

### Install ruby:

$ rvm install 2.3.1

### Install rails:

$ gem install rails

## Project Setup

### Clone the project locally

$ git clone [email protected]:Galvanize-IT/list-test.git

### Run migrations

$ rake db:migrate

## Run the app

`rails server`
This command will start the application on port 3000. Visiting 'localhost:3000' in a web broswer
will run the application.

## Tests

### Capybara Tests

`$ rspec`
This will run all tests.

`$ rspec spec/controllers`
This will run all tests in the controllers file.

`$ rspec spec/controllers/todo_items_controller_spec`
This will run only this test file.

`$ rspec spec/controllers/todo_items_controller_spec:5`
This will run only the test block that line 5 is contained within.

### Jasmine Tests

`rake jasmine`
This will start the jasmine server
Visiting 'localhost:8888' in a web browser will run the jasmine tests.

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.