This is a React App project that was bootstrapped with Create React App, consuming external API : SWAPI.
See the project LIVE: Demo Starship Database
Clone this repo : git clone https://github.com/feyzasyf/iyzico-practicum-final-case.git
Navigate to the root folder and install all dependencies :
yarn
ornpm install
Start Development Mode :
yarn start
ornpm start
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Run Unit Tests:
npm test
oryarn test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
On the home page you can see the list of all the starships available in SWAPI, starships endpoint.
You can search among starships by their name or model, and access the details of each starship by clicking on the relevant starship card by being redirected to the single starship detail page.
- This app is styled with Styled Components
- Context API is used for dependency injection
- Axios is used for API requests
- React Router v6 is used for routing
|-- src/
|-- assets/
|-- starshipImages/
|-- components/
|-- context/
|-- hooks/
|-- routes/
|-- utils/
|-- App.js
|-- globalStyles.js/
|-- index.js
|-- reportWebVitals.js
|-- setupTests.js
assets
: Folder to put assets like logos and imagescomponents
: Folder to put all components with their tests and stylescontext
: Folder for the AppContexthooks
: Folder to put custom hooksroutes
: Folder for pagesutils
: Folder to put helper/utility functionsglobalStyles.js
: Js file to provide global styling for our styled components