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.
- Ruby on Rails
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
This API has a single endpoint. It return a random greeting message object.
```
GET /v1/random-message
```
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/newFeature
) - Commit your Changes (
git commit -m 'Add some newFeature'
) - Push to the Branch (
git push -u origin feature/newFeature
) - Open a Pull Request
👤 Hubert Mugabo
- GitHub: @githubhandle
- Twitter: @twitterhandle
- LinkedIn: LinkedIn
- Microverse Team
Give a ⭐️ if you like this project!