- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- 📝 License
Rails with React is a project that shows how to integrate React.js with a Rails application. It is a simple application that allows users to view random greatings each time they refresh the page.
Backend
Database
- An endpoint that returns a random greeting
To get a local copy up and running, follow these steps.
In order to run this project you need:
- Ruby
- Rails
- PostgreSQL
Clone this repository to your desired folder:
cd my-folder
git clone https://github.com/yuvenalmash/Hello_Rails_with_React_Separate
Install this project with:
cd Hello_Rails_with_React_Separate
bundle install
Setup the database with:
rails db:create
rails db:migrate
rails db:seed
To run the project, execute the following command:
rails server
- Return a random greeting
GET /api/v1/messages/random
- Return all greetings
GET /api/v1/messages
- Return a specific greeting
GET /api/v1/messages/:id
👤 Author1
- GitHub: @yuvenalmash
- Twitter: @YuvenalNjoroge
- LinkedIn: yuvenal-njoroge
- Add more endpoints
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project, give it a ⭐️!
I would like to thank microverse for the inspiration to do this project.
This project is MIT licensed.