Git Product home page Git Product logo

rails-react-setup's Introduction

Hello Rails React

Understand the setup process for adding React/Redux to rails application.

This project is made as part of Microverse program.

Project Requirement

  • Create a new Rails app called 'hello-rails-react'.
  • Initialize your project with Git.
  • Set up your project with webpacker the react-rails gems as describe in the previous lesson's tutorial.
  • Make sure that your project has a Postgres database set up.
  • Create a table for storing your messages and create 5 different greetings.
  • Create an API endpoint that selects a random greeting from your table (you will need a controller with an action and Rails route).
  • Create a static view that will be the root of your app.

  • Create the App component with react-router and render it in your static view.
  • Create the Greeting component that will display a greeting. Set it up as a route in your App component.
  • Create a store, an action and a reducer that will connect to you API endpont to get the random greeting.
  • Display the random greeting in your Greeting component.

Built With

  • RUBY
  • RAILS
  • GEM
  • TERMINAL
  • React/Redux

Getting Started

Start by cloning the repository.

git clone [email protected]:oluyaratosin123/hello-rails-react.git

Navigate to the created folder.

cd hello-rails-react

Current Ruby Version for this project

ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-linux]

Install all the dependencies.

bundle install
npm install

Create and migrate the database

rails db:create
rails db:migrate

To run the server

rails s

Link to localhost

Authors

Dire Akanbi

๐Ÿค Contributing

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.

rails-react-setup's People

Contributors

direakanbi avatar

Watchers

 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.