jose-Abel / hello-rails-back-end

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello Rails-Backend - Jose Abel Ramirez Frontany

Project to set up an API with rails to choose a random greeting from the DB. It consist of 1 route, the RandomGreetingsController with the index action that it's in charge of picking a random greeting object.

React app

https://github.com/jose-Abel/hello-react-front-end

Built With

  • rails
  • rspec
  • ffaker
  • factory_bot_rails

Getting Started

To get a local copy up and running follow these simple example steps.

Setup

Go to the top of the page, press te green button that says "Code", and copy the link. Then you have to go to your console and type

    git clone 'repository-link'

That's all, you are ready to go!

Install

Run the following command to have all yarn packages dependencies installed:

    bundle install
    rails db:create
    rails db:migrate
    rails db:seed

Usage

To run the rails app, type the following command:

    rails s

Tests with RSpec

To run the rspec test files for Rails controller type the following

    rspec

Linters

To run the Rails Rubocop rules, type the following

    rubocop

Author: Jose Abel Ramirez Frontany**

🤝 Contributing

Contributions, issues, and feature requests are welcome!

📝 License

This project is MIT licensed.

Show your support

Give a ⭐️ if you like this project!

About


Languages

Language:Ruby 79.1%Language:HTML 11.8%Language:JavaScript 7.6%Language:CSS 1.5%