Ol-create / hello_rails_react_backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Hello Rails - BackEnd Service

πŸ“— Table of Contents

πŸ“– Hello Rails - Backend

This project is intended to set-up and initialize a RoR project as a backend service along other serviecs such as React for the frontend

Hello Rails - Backend is the initializing base blueprint project for building apps using RoR as the backend service

πŸ›  Built With

Tech Stack

This App backend template was built with Ruby on Rails, using Gitflow and customized Linters

Client
Server
Database
Frontend

Key Features

  • RoR for building integrated apps
  • PostgreSQL as the database manager

(back to top)

πŸ’» Getting Started

Prerequisites

Check your Ruby version or install it

ruby --version && irb

The ouput should start with something like ruby 3.1.2

If not, install the right ruby version using rbenv (it could take a while):

rbenv install 3.1.2

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

Clone the repository

git clone https://github.com/Ol-create/hello_rails_react_backend.git
cd hello-rails-back-end

Install

  • Ensure you have PostgreSQL installed before running the application psql --version
  • Run bundle install
  • Create a .env file in the project's root folder to assign variable values for the psql database (linked to the config/database.yml)
  • Run rails db:create and then rails db:migrate
  • Run rails server
  • Open Browser http://localhost:3000/

.env File Structure

See the .env.example file

Replacing the variable values where needed (most importantly username and password)

Usage

To run the project, execute the following command:

  rails server

Testing

To test and utilize the code, use the terminal and run ruby by inputting irb in the command line, or by using an extension in Visual Studio Code like Code runner

The user then can modify and play with the files as needed

(back to top)

πŸ‘₯ Author

πŸ‘€ Oluyemi Paul

(back to top)

🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

Give a ⭐️ if you like this project!

(back to top)

πŸ™ Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • To all the collaborators for the Readme Template
  • The Microverse Team

(back to top)

πŸ“ License

This project is MIT licensed.

(back to top)

About


Languages

Language:Ruby 68.0%Language:HTML 18.3%Language:Batchfile 7.8%Language:JavaScript 3.3%Language:CSS 1.9%Language:Shell 0.8%