Wookieleaks is a small web app built with Vite and React using SWAPI via its GraphQL Wrapper.
Hosted on Netlify
- Infinite scrolling of star wars characters
- Open modal to view more detailed information
-
Clone the repo.
git clone git@github.com:ruaraikirk/wookieleaks.git
-
Install the packages by running
npm install
. -
(Optional) Follow the instructions here to set up the SWAPI GraphQL Wrapper locally.
-
In the file
src/main.jsx
, change the Apollo Client uri parameter to the GraphiQL instance running locally at localhost (the actual port number will be printed to the console), or leave as the default if skipped step 3. -
Start the application locally in dev mode.
npm run dev
-
Verify by opening the following URL in broswer.
http://127.0.0.1:5173/
Some example testing of UI cna be run using the following command.
npm run test