/hello-rails-react

Primary LanguageRubyMIT LicenseMIT

Hello React-Rails App

A react-rails app to show greetings

Built With

  • Ruby
  • Ruby on Rails
  • React
  • PostgreSQL

Getting Started

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

Pre-requisites

Make sure you have Ruby and Rails installed on your computer. If not, you can follow this tutorial to install them.

If you don't have PostgreSQL installed, you can follow this tutorial to install it.

If you don't have yarn installed, you can follow this tutorial to install it.

Usage

In your terminal, navigate to your current directory and run this code

git clone https://github.com/deyemiobaa/hello-react-rails-app.git

Then run

cd hello-react-rails-app

Open the project in your favorite code editor. code . for VS Code.

  • Use the command bundle install to install all project dependencies.
  • Run yarn install to install all the JavaScript dependencies.
  • Run rails db:create db:migrate to create the database and run migrations.
  • You might need to supply a username and password for your PostgreSQL database if you run into an error with the previous step.
  • Run rails db:seed to seed the database with some sample data.
  • Simply navigate to config/database.yml and add your username and password to the username and password fields.
  • Type in the terminal ./bin/dev to start the server then click on http://127.0.0.1:5000

Author

👤 IFZA Rasool

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.