Code Monkey home page Code Monkey logo

forecast-rails's Introduction

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.

forecast-rails's People

Contributors

leompeters avatar

Watchers

 avatar  avatar

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.