This is a simple React application that fetches and displays information about planets from the Star Wars API (SWAPI). Each planet's data is presented in a card format, including details such as name, climate, population, and terrain. Additionally, information about residents of each planet is displayed.
- Fetches planet data from the SWAPI.
- Displays planet information in cards.
- Displays information about residents of each planet.
- Pagination functionality to navigate through the list of planets.
- Responsive design with clean layout and user-friendly controls.
Link for hosted website : https://yodaji.netlify.app/
-
Clone the repository:
-
Navigate into the project directory:
cd Star-Wars
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and visit
http://localhost:3000
to view the application.
- Upon opening the application, you will see a list of planets fetched from the SWAPI.
- Each planet card displays information such as name, climate, population, and terrain.
- Click on the "Next Page" or "Previous Page" buttons to navigate through the list of planets.
- Information about residents of each planet is displayed below the planet's details.
- React.js
- SWAPI (Star Wars API)
- CSS for styling