Skip to content

petudeveloper/hello-rails-react

Repository files navigation

Hello Rails React

This is a web API that works with React and Redux. The database stores greetings. Doing an API request returns a random element from the table. React is set up to do an API request and display the resulting greeting.

Prerequisites

  • Ruby on Rails. Official Rails Guides here.
  • Postgres. Official documentation here.

Getting Started

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

  • Run on your terminal
git clone https://github.com/petudeveloper/hello-rails-react.git
cd hello-rails-react

Setup

  • Run the following commands on your terminal
bundle install
yarn install
npm install
  • Setup database with:
rails db:migrate
  • Seed database with 5 greetings:
rails db:seed

Usage

Start server with:

rails server
  • Go to your browser and visit:
http://localhost:3000
  • To see the API working visit:
http://localhost:3000/api/v1/greetings

Build With

  • Ruby on Rails
  • React
  • Redux
  • Postgres

Author

👤 David Alvarez

🤝 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!

Acknowledgments

  • Hat tip to anyone who's code was used
  • Inspiration
  • etc

📝 License

This project is MIT licensed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published