https://github.com/laylo309/hello-rails-react
https://github.com/laylo309/hello-rails-react
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/laylo309/hello-rails-react
- Owner: Laylo309
- License: mit
- Created: 2022-01-17T21:02:28.000Z (over 4 years ago)
- Default Branch: dev
- Last Pushed: 2022-01-20T22:32:13.000Z (over 4 years ago)
- Last Synced: 2025-01-09T04:28:44.426Z (over 1 year ago)
- Language: Ruby
- Size: 393 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hello Rails React
By now you've used many different gems with Rails and this exercise will have you connect previous knowledge with new knowledge as you get a chance to use the `react-rails` gem. This gem allows you to build React components as a part of your Rails JavaScript and serve it in a component, `react_component`, to be used in a regular ERB file.
## Getting Started
To run the project locally, copy up and running follow these simple example steps :
- First of all make sure you have both `Ruby` & `Rails` installed in your machine
(else You can install `Rails` just with this simple command ```gem install rails```)
- clone the project with the following command line :
```
$ git clone git@github.com:Laylo309/hello-rails-react.git
```
- Then go to the right folder
```
$ cd hello-rails-react
```
```
$ bundle
```
and run to install npm package
```
$ npm install
```
make sure the database is up and running.
```
$ rails db:create
```
When you will add migration file then, you can add command like
```
$ rails db:migrate
```
When you will add seeds file then, you can add command like
```
$ rails db:seed
```
- Finaly run `rails s` and visit http://localhost:3000/ in your browser!
## Built With
- Ruby on Rails
- PostgreSQL
- React
## Author
👤 **Laylo Khodjaeva**
- GitHub: [@Laylo309](https://github.com/Laylo309)
- Twitter: [@Laylo](https://twitter.com/home?lang=en)
- LinkedIn: [LayloKhodjaeva](https://www.linkedin.com/in/laylo-khodjaeva-05a972207/)
## 🤝 Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/Laylo309/hello-rails-react/issues).
## Show your support
Give a ⭐️ if you like this project!
## Acknowledgments
- Inspiration 💘
- Microverse program ⚡
- My standup team 😍
- My family's support 🙌