Lockless404 / hello-rails-back-end

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hello-rails-back-end

Description

Since I familiar with Rails and React I put them together in a new kind of 'Hello World!' app. This exercise is going to have you create a React front-end with a Rails back-end and connect them to display a random message.

Learning objectives

  • Implement a connection between a Ruby on Rails back-end and React front-end.
  • Understand pros and cons of different approaches of connecting Ruby on Rails back-end with React front-end.

Getting Started

To get a local copy for this project and running follow these simple example steps.

Link

react-front-end

heroku

Setup

Creating the hello-rails-back-end

$   rails new hello-rails-back-end --api --database=postgresql
$   cd hello-rails-back-end # Move into the application directory

Clone this repository

$ https://github.com/kingqabil/hello-rails-back-end.git
$ cd hello-rails-back-end

Create the database

$   rails db:create   # or
$   rake db:create

Install linter and

  • Rubocop gem
$  bundle init
$  bundle install
  • Run linter
$  rubocop .
  • In auto-correct mode, RuboCop will try to automatically fix offenses:
$  rubocop -A # or
$  rubocop --auto-correct-all

Built With

This project is build with:

  • Ruby
  • Ruby on Rails

Authors

👤 Hamza Tarar

🤝 Contributor

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.

About

License:MIT License


Languages

Language:Ruby 77.9%Language:HTML 16.1%Language:JavaScript 3.8%Language:CSS 2.2%