Skip to content

A UI consuming data from the Star Wars GraphQL wrapper API. Built with React v16.8, GraphQl w/ Apollo, Hooks effects, memo Cb and local state, styled-components; Written with Javascript+TypeScript

Notifications You must be signed in to change notification settings

heldrida/swapi-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b7b46b2 · Feb 21, 2020

History

96 Commits
Feb 10, 2020
Feb 14, 2020
Feb 10, 2020
Feb 16, 2020
Feb 21, 2020
Feb 10, 2020
Feb 16, 2020
Feb 16, 2020
Feb 10, 2020
Feb 16, 2020

Repository files navigation

Star Wars Top-trumps

This projects depends on the Graphql wrapper for the Star Wars API; To avoid CORS and 405 (when, using a reverse proxy at the time of writting), run the following Docker service locally.

First, install Docker:

Then pull the desired image from my repository:

docker pull punkbit/swapi-graphql

Run the project in your desired port (change App settings if that's the case), or find it listening on port 8080:

docker run -e PORT='8080' -p 8080:8080 -d punkbit/swapi-graphql

To stop, list, find in the log and stop the container id, example:

docker ps

docker logs

docker stop

For easy exploration of this GraphQL server:

Alternatively, you can find a proxy server for the Swapi API in the following links (but have in mind that while they were available at time of writing this may not be the case at any other time):

Use the address and update the configuration file accordingly with the correct URL of your choice!

The project was bootstrapped with Create React App, so the following common scripts are available,

To start:

yarn start

Run tests:

yarn test

To Build:

yarn build

To serve the Production/Built version:

npx serve -s build

For development:

yarn watch

This uses a watcher that checks for any changes in the .test.tsx files and runs the tests. Change it accordingly. Although, [TODO] a pre-commit hook will be added later on to run tests.

About

A UI consuming data from the Star Wars GraphQL wrapper API. Built with React v16.8, GraphQl w/ Apollo, Hooks effects, memo Cb and local state, styled-components; Written with Javascript+TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages