/hello-react-front-end

Primary LanguageJavaScriptMIT LicenseMIT

Hello react front-end

"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.

screenshot

Built With

  • React
  • Redux

Getting Started

To get a local copy up and run the app, follow these simple example steps.

Prerequisites

  • Node.js > 16.13.0
  • npm > 8.1.3
  • yarn > 1.22.15

Setup

Clone the repository with:

git clone git@github.com:ShinobiWarior/hello-react-front-end.git

or download ZIP file

Install

To install all dependencies, run:

npm install

Usage

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:

image

IMPORTANT!!!

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.

Author

👤 Aleksandar Ivezic

🤝 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!

Acknowledgments

📝 License

This project is MIT licensed.