Hello Rails + React is a project that aims to connect a Ruby on Rails back-end with a React front-end.
- Implement a connection between a Ruby on Rails back-end and React front-end.
- Understand the pros and cons of different approaches of connecting Ruby on Rails back-end with React front-end.
- Rails back-end with React front-end.
To get a local copy up and running, follow these steps.
To run this project you need:
- Have Ruby installed. If you need to install Ruby, follow the instructions on the official page.
Clone this repository to your desired folder:
Example commands:
- With SSH:
cd my-folder
git clone [email protected]:obibaadoma/hello_rails_react.git
- With HTTPS:
cd my-folder
git clone https://github.com/obibaadoma/hello_rails_react.git
- With GitHub CLI:
cd my-folder
gh repo clone obibaadoma/hello_rails_react
Go to the project directory:
cd hello_rails_react
Before running the program, verify that you have Ruby on Rails installed on your OS by running the following command:
rails --version
It should show you the version of Ruby On Rails ββinstalled. If this does not happen and only an error message is displayed, you should verify your installation or install Ruby on Rails from scratch.
Download and Install Ruby on Rails
Once you have verified that you have Ruby on Rails installed, run the following command to install the necessary gems:
bundle install
After installing the gems, run the following command to create the database:
rails db:create
Then run the following command to migrate the database and seed it with the necessary data:
rails db:migrate
rails db:seed
Run the following command inside the project folder to start the application:
./bin/dev
This will start the application on your local server. You can now open your browser and go to http://localhost:3000/ to see the application running.
To execute the tests, run the following command inside the project folder (root):
bundle exec rspec
π€ Derek Akrasi Konadu
- GitHub: @ITurres
- LinkedIn: Arthur Emanuel G. Iturres
- Style the application.
Contributions, issues, and feature requests are welcome!
Kindly open any new issues or feature requests on the repo's issues page.
Give a β if you liked this project!
I thank the Code Reviewers for their advice and time π
This project is MIT licensed.