Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tmobaird/railstwitter

Ruby On Rails simple Twitter Application
https://github.com/tmobaird/railstwitter

Last synced: 12 days ago
JSON representation

Ruby On Rails simple Twitter Application

Awesome Lists containing this project

README

        

railsTwitter


This is a simple Ruby On Rails application that is a twitter feed. Tweets can either be posted without a name, which will just come up as "Anonymous" or with a name. This is deployed on Cloud 9. At the following url: https://twitter-tmobaird.c9.io/tweets/index

Rails Directories and Configurations


All controller files are located under the /app/controllers/ directory. The main controller file for this application is tweets_controller.rb. All view files are located under the /app/views/tweets/ directory but the application.html.erb overall layout is located under the /app/views/layout/ directory. My model is located in the /app/models/ directory as the file tweet.rb.

Cucumber Testing


This repository also includes some of the Cucumber tests that I have used on this application. The .feature files are located inside the features directory. And the step defintions are located inside the /features/step_defintions directory. To use cucumber there must be a few commands that need executed for this to work:
```
$ gem install cucumber
$ bundle install
$ rails g cucumber:install
```
Thsi will create all the necessary directories and install cucumber for you. From here if you would like to execute your cucumber tests on the application you can type either of the following commands:
```
$ bundle exec cucumber
```
or
```
$ cucumber /features/fileToTest.cucumber
```