The "Hello React" app is a front-end application built with React, utilizing Vite for an enhanced development experience. This app demonstrates how to fetch data from a Rails API ("Hello Rails" app) and display it. The main feature is showing a random greeting fetched from the "Hello Rails" app
MIT License
The "Hello React" app is a front-end application built with React, utilizing Vite for an enhanced development experience and TailwindCSS for styling. This app demonstrates how to fetch data from a Rails API ("Hello Rails" app) and display it. The main feature is showing a random greeting fetched from the "Hello Rails" app.
git clone https://github.com/lily4178993/hello-react-front-end.git
cd hello-react-front-end
npm install
# or
yarn install
After cloning the repo and moving into the project directory, install the dependencies:
npm install
# or
yarn
Start the development server:
npm run dev
# or
yarn dev
Open http://localhost:5173/
to view it in your browser.
Ensure the "Hello Rails" app is running to fetch greetings successfully. For details on running the "Hello Rails" app, refer to its README.
This project uses Jest alongside React Testing Library to run unit and integration tests. React Testing Library offers a robust set of tools that allow for testing components in a way that simulates user interactions more closely.
Running Tests
To run the test suite, execute the following command in your terminal:
npm run test
# or
yarn test
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if this project helped you!
This project is MIT licensed.