Welcome to my React application, where car enthusiasts can explore brief descriptions of various cars and listen to their unique rev notes. This interactive platform allows users to:
- View Car Descriptions: Discover brief information about different cars.
- Listen to Rev Notes: Enjoy the authentic sounds of car engines.
- Customize the app: You can add your own cars and delete the ones you don't need, to create a your own customized version, by editing the cars.js file.
Make sure you have the following installed on your local system:
- Node.js (version 14.x or later)
- npm (version 6.x or later) or yarn
- Git
Go to your terminal and run these commands
-
Clone the repository:
git clone https://github.com/Pyoneer01/React-Garage.git cd React-Garage
-
Install dependencies:
npm install # or yarn install
-
Start the development server:
npm start # or yarn start
-
Open your browser and navigate to
http://localhost:3000
to see your application running.
To add a new car, follow these steps:
-
Edit the
cars.js
File:- Open the
cars.js
file in thesrc
directory. - Add a new entry for the car in the array of car objects, specifying the name, description, image path, and audio path.
- Open the
-
Include the Car Image: Place the car’s image in the
images
folder.- Save the car image file in the
public/images
directory. - Ensure the image file name matches the path specified in the
cars.js
file.
- Save the car image file in the
-
Include the Rev Note: Place the car’s rev note audio file in the
sounds
folder.- Save the audio file in the
public/sounds
directory. - Ensure the audio file name matches the path specified in the
cars.js
file.
- Save the audio file in the
To remove a car from the list:
- Edit the
cars.js
File:- Open the
cars.js
file in thesrc
directory. - Remove the specific car object to be removed from the array of car objects.
- Open the