The base URL is: https://wdi-nyc-planets-api.herokuapp.com
Available endpoints: /planets
and /planets/random
- Fork
- Clone this repo
Install the necessary dependencies
npm install
Use npm start
to start a server that will serve your new React application:
npm start
- React Router has already been installed
- The following components have already been created for you:
Planets
,PlanetDetail
,RandomPlanet
andHome
.
-
Your app should have routes for your Planets, PlanetDetail, RandomPlanet and Home components
-
Planets should render all the planet names.
-
PlanetDetail should render the data for an individual planet's color and number of moons.
-
RandomPlanet should route to an endpoint
/planets/random
and render a random planet. -
Welcome should be a welcome page for the user showing the Link to PlanetList and RandomPlanet.
-
In the Planets component, turn each planet name list into a link; when people click on the link, they should be navigated to the PlanetDetail page for the selected planet
-
Use fetch or axios your API requests