"Hello react front-end" project is a React app that fetches random greeting from hello-rails-back-end app and renders it through its components.
- React
- Redux
To get a local copy up and run the app, follow these simple example steps.
- Node.js > 16.13.0
- npm > 8.1.3
- yarn > 1.22.15
Clone the repository with:
git clone git@github.com:ShinobiWarior/hello-react-front-end.git
or download ZIP file
To install all dependencies, run:
npm install
To open it in the browser, in the project directory, run:
npm start
Choose port 3001 or any other different from 3000 to run your server on it
and open http:localhost:3000/
on your browser.
You should be able to see something like this:
Your rails application must be running in the background. You will need to disable Cross-Origin Resource Sharing (CORS) to be able to fetch the data from the local server. Please install CORS Everywhere for Mozilla, or Allow CORS: Access-Control-Allow-Origin if you are a Chrome user, so you can bypass the CORS rules.
👤 Aleksandar Ivezic
- GitHub: @Aleksandar Ivezic
- Twitter: @AIvezic
- LinkedIn: Aleksandar Ivezic
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- This project was inspired by Microverse
This project is MIT licensed.