Giter VIP home page Giter VIP logo

hello-rails-back-end's Introduction

Hello Rails Back-End

πŸ“— Table of Contents

πŸ“– Hello Rails Back-End

Hello Rails Back-End is a Rails API app that provides random greetings through an API endpoint. This project meets the following requirements:

πŸ›  Project Requirements

  • Create a Rails API app called 'hello-rails-back-end'.
  • Initialize the project with Git.
  • Set up a Postgres database and create a table for storing messages.
  • Populate the table with 5 different greetings.
  • Create an API endpoint that selects a random greeting from the table.

πŸ”— Integration with Hello Rails Front-End

This back-end application is designed to work in conjunction with the Hello Rails Front-End project. The back-end project provides a server API, and the front-end application makes requests to http://localhost:3000/api/v2/greetings/random to fetch random greetings. Ensure that the back-end server is running before using this application.

(back to top)

Key Features

  • Ruby on Rails framework
  • Use Linters to check code quality
    • Rubocop
  • MVC architectural/design pattern
  • Data persistent in PostgreSQL
  • RESTful API

(back to top)

πŸ’» API Endpoints

  • GET /api/v2/greetings/random
    • Returns a random greeting from the database.

(back to top)

πŸš€ Getting Started

To get the project up and running on your local machine, follow these steps.

Prerequisites

Before you begin, make sure you have the following prerequisites installed on your system:

  • Ruby: You need Ruby to run the Rails application.
  • Bundler: Bundler is used to manage gem dependencies in your Ruby project.
  • Postgres: You need Postgres as the database for the Rails app.

Setup

Clone this repository to your desired folder:

git clone https://github.com/hafiz1379/hello-rails-back-end.git
cd hello-rails-back-end

Install gem dependencies:

bundle install

Set up the database:

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

Run the Project

To run the project, execute the following command:

rails server

The API will be accessible at http://localhost:3000/api/v2/greetings/random.

(back to top)

πŸ‘₯ Author

πŸ‘€ Hafizullah Rasa

(back to top)

πŸ”­ Future Features

Upcoming improvements:

  • Add the endpoints to create, update and delete a greeting
  • Deploy the application

(back to top)

πŸ”­ Issues

Find a bug or have a feature request? Open a new issue here on GitHub.

(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 find this project helpful, please consider starring the repository. Your support is greatly appreciated!

(back to top)

πŸ“ License

This project is licensed under the MIT License - see the LICENSE.md file for details.

(back to top)

hello-rails-back-end's People

Contributors

hafiz1379 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.