leompeters / forecast-rails

Coding assignment for creates a forecast page with Ruby on Rails.

Home Page:http://forecast-rails.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forecast in Rails

Analytics

This repo is an example on how to create a Ruby on Rails app to consume a forecast API.

Quick Start

Taking the assumption that we only want to call an API to show the forecast data, I am creating a rails app with the below command to skip database, mailer, and default test framework (I will bw using RSpec instead of MiniTest).

  1. Create a new rails app, skipping database, mailer, and default test framework.

    $ rails new forecast-rails -O -M -T
  2. Setup your project gems/libraries environment installing RVM.

    $ rvm install 2.7.1
    $ rvm use 2.7.1@forecast-rails --create
  3. Install libraries.

    $ bundle install
    $ yarn install
  4. Run the server

    $ rails s

Dependencies

Tests

Tests are based in RSpec tool.

The scripts with desired contexts are at ./spec/models and ./spec/features folder.

Git Workflow

Please, use git-flow branch model workflow to new features, hot-fixes, and releases:

API

This project is using some external APIs and to read and test them, we can use the files in /doc/api or in Postman.

What have you get?

Things we have covered:

  • Ruby version 2.7.1;
  • Basic customized Rails app;
  • System dependencies;
  • Environment Configuration;
  • How to run the test suite;
  • Deployment instructions.

Contributors

This is a personal project example, so we must not have a long list of contributors. Check it out here:

https://github.com/leompeters/forecast-rails/graphs/contributors

License

Forecast Rails is released under the MIT License.

About

Coding assignment for creates a forecast page with Ruby on Rails.

http://forecast-rails.herokuapp.com

License:Other


Languages

Language:Ruby 78.5%Language:HTML 17.8%Language:SCSS 2.0%Language:JavaScript 1.7%