Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/od-c0d3r/hello-rails-backend

Project with a React front-end and Rails back-end and connect them to display a random message.
https://github.com/od-c0d3r/hello-rails-backend

api backend rails ruby

Last synced: 25 days ago
JSON representation

Project with a React front-end and Rails back-end and connect them to display a random message.

Awesome Lists containing this project

README

        

![](https://img.shields.io/badge/Microverse-blueviolet)

> React Front-end Application : [hello-react-front-end](https://github.com/od-c0d3r/hello-react-front-end/tree/frontend) and its [Pull Request](https://github.com/od-c0d3r/hello-react-front-end/pull/1)

# Hello Rails Back-end

> Project with a React front-end and Rails back-end and connect them to display a random message.

## Built With

- Rails 7 ~ _Ruby Web development framework_

## Getting Started

To get a local copy up and running follow these simple example steps

- From your terminal enter in sequence
- `git clone [email protected]:od-c0d3r/hello-rails-backend.git`
- `code hello-rails-backend`

### Available Scripts

In the project directory, run in order:

- #### `rails db:create`

- Creates the project database.

- #### `rails db:migrate`

- Creates the tables in the database.

- #### `rails db:seed`

- Populate the tables with default records.

- #### `rails server`

- Runs the app in the development mode.\
Open `http://localhost:PORT` to view it in your browser.

### Usages

- End-point `/api/greeting`
- Method `GET`
- Return random message from Stored messages in server database

## Coders

👤 **Omar Rashad**

- GitHub: [@od-c0d3r](https://github.com/githubhandle)
- LinkedIn: [@omarrashad](https://linkedin.com/in/omarrashad)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](../../issues/).

## Show your support

Give a ⭐️ if you like this project!

## License

This project is [MIT](./MIT.md) licensed.