- About Project
- Built With
- Tech Stack
- Key Features
- Getting Started
- Usage
- Tests
- Author
- Future Features
- Contributing
- Show your support
- Acknowledgements
- License
The rails_react_webpack app is a web application built with React and Ruby on Rails. This app demonstrates how to fetch data from a Rails API and display it. The main feature is showing a random greeting when thee user refresh the page.
- Webpack
- Ruby on Rails
- React & Redux
- Webpack
- Ruby on Rails
- React & Redux
- Fetches a random greeting from the API.
- Node.js V18 minimum
- npm or yarn
- Ruby and Rails installed
- Clone this repository
git clone https://github.com/lily4178993/my_rails_react_webpack_app.git
cd my_rails_react_webpack_app
- Install dependencies
bundle install
npm install
- Update your database informations Go to
config/database.yml
. Replaceyour_postgres_username
andyour_postgres_password
with your database informations
default: &default
adapter: postgresql
encoding: unicode
pool: 5
username: [your_postgres_username]
password: [your_postgres_password]
host: localhost
development:
<<: *default
database: [your_database_for_development]
test:
<<: *default
database: [your_database_for_test]
production:
<<: *default
database: [your_database_for_production]
Populate greetings data in the database by running the following commands:
rails db:create
rails db:migrate
rails db:seed
Start the development server:
npm run start
Open http://localhost:3000/
to view it in your browser.
- Nelly Telli - @lily4178993
- Implement additional API calls to the API.
- Enhance UI/UX with animations.
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if this project helped you!
- React Documentation
- Rails Documentation
- Microverse
This project is MIT licensed.