Backend

📗 Table of Contents

📖 Rails with React

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.

Frontend Repository

🛠 Built With

Tech Stack

Backend
Database

Key Features

  • An endpoint that returns a random greeting

(back to top)

💻 Getting Started

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

Prerequisites

In order to run this project you need:

  • Ruby
  • Rails
  • PostgreSQL

Setup

Clone this repository to your desired folder:

  cd my-folder
  git clone https://github.com/yuvenalmash/Hello_Rails_with_React_Separate

Install

Install this project with:

  cd Hello_Rails_with_React_Separate
  bundle install

Setup Database

Setup the database with:

  rails db:create
  rails db:migrate
  rails db:seed

Usage

To run the project, execute the following command:

  rails server

Endpoints

  • 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

(back to top)

👥 Authors

👤 Author1

(back to top)

🔭 Future Features

  • Add more endpoints

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this project, give it a ⭐️!

(back to top)

🙏 Acknowledgments

I would like to thank microverse for the inspiration to do this project.

(back to top)

📝 License

This project is MIT licensed.

(back to top)