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.
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
- 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
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
- Ruby on Rails
- React
- Redux
- Postgres
👤 David Alvarez
- GitHub: @petudeveloper
- Twitter: @petudeveloper
- LinkedIn: David Alvarez Mazzo
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Hat tip to anyone who's code was used
- Inspiration
- etc
This project is MIT licensed.