Hello Rails Back End is an exercise to understand the pros and cons of different approaches of connecting Ruby on Rails back-end with React front-end
Server
Database
The key features of this project include.
- Random Greetings API
To get a local copy up and running, follow these steps.
Before you begin, make sure you have the following installed on your machine:
- Ruby: You can download Ruby here.
- Rails: You can install Rails by running the command
gem install rails
in your terminal. - A code editor (like VSCode, Sublime, Atom, etc.): You can download VSCode here, Sublime here, and Atom here.
- Git: You can download Git here.
- Node.js: You can download Node.js here.
To setup this project locally:
- Open terminal in VScode.
- Navigate to the directory where you want clone the copy of this repository.
- Create new directory [optional].
- Clone the repository by running the following command:
git clone [email protected]:MNisarAli/hello-rails-back-end.git
- Navigate into the cloned repository:
cd hello-rails-back-end
Install the required dependencies by running the following command:
bundle install
To create the database, run the following command:
rails db:create
To migrate the database schema, run the following command:
rails db:migrate
To run the application, run the following command:
rails server -p 3001
This will start the Rails development server and you can access the application by visiting http://localhost:3001 in your web browser.
The collaborators of this project.
๐จโ๐ M Nisar Ali
- GitHub: @MNisarAli
- Gmail: @[email protected]
- LinkedIn: @Muhammad Nisar Ali
- More conditional checking and features will be added in future
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a โญ๏ธ, if you like this project!, also follow me on GitHub & LinkedIn.
I would like to thank:
- Microverseinc for Readme-template.
- Rails for the amazing framework.
- PostgreSQL for the amazing database.
This project is MIT licensed.