- About Project
- Built With
- Tech Stack
- Key Features
- Getting Started
- Usage
- Tests
- Author
- Future Features
- Contributing
- Show your support
- Acknowledgements
- 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.
- React
- Vite
- TailwindCSS
- React: 18.2.0
- Vite: 5.0.8
- TailwindCSS: 3.4.1
- Jest: 29.7.0 - for running unit and integration tests.
- React Testing Library: 14.2.1 - for writing readable tests that work with actual DOM nodes.
- Fetches a random greeting from the "Hello Rails" app.
- Stylish, responsive UI with TailwindCSS.
- Fast development experience with Vite.
- Node.js (specify minimum version)
- npm or yarn
- Access to the "Hello Rails" app running either locally or hosted. Hello Rails App
- Clone this repository
git clone https://github.com/lily4178993/hello-react-front-end.git
cd hello-react-front-end
- Install dependencies
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
- Nelly Telli - @lily4178993
- Implement additional API calls to the "Hello Rails" app.
- 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
- TailwindCSS Documentation
- Vite Documentation
- "Hello Rails" app for providing the API
- Microverse
This project is MIT licensed.