Hello Rails Backend

This repo contains a small API app built with rails. It returns a random greeting message and is designed to be consumed by Hello React Frontend.

Built With

  • Ruby on Rails

Getting Started

Follow this steps to get the app running on local machine:

  • Clone this repo https://github.com/mugberto/hello-rails-backend

    git clone https://github.com/mugberto/hello-rails-backend.git
  • Navigate to hello-rails-backend folder/directory

    cd hello-rails-backend
  • While inside hello-rails-backend folder, install gems with

    bundle install
  • Next, create and populate the database with initial data

    rails db:create
    rails db:migrate
    rails db:seed
  • Lastly, start the rails server

    rails server

Endpoints

This API has a single endpoint. It return a random greeting message object.

```
GET /v1/random-message
```

Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/newFeature)
  3. Commit your Changes (git commit -m 'Add some newFeature')
  4. Push to the Branch (git push -u origin feature/newFeature)
  5. Open a Pull Request

Authors

👤 Hubert Mugabo

Acknowledgements

  • Microverse Team

Show your support

Give a ⭐️ if you like this project!