alif-munim / graphql-start Goto Github PK
View Code? Open in Web Editor NEWGetting familiar with GraphQL.
Home Page: https://obscure-mesa-68334.herokuapp.com/
Getting familiar with GraphQL.
Home Page: https://obscure-mesa-68334.herokuapp.com/
Create README.md
containing documentation for customer-server, apollo-react, and graphql-pokemon.
Add a short description about a selected pokemon in the PokemonInfo
component. Update the pokemonSpecies
query to retrieve flavor_text
fields.
Install the required packages and set up a local express server with GraphQL. Create basic object types and hard code some data to test.
Packages:
npm install express express-graphql graphql nodemon
Use a spinner from antd
and replace default loading text.
Change site header from standard h1
tag to a Logo image to make it more recognizable.
Integrate React
into the project and run alongside the graphql server using concurrently.
Add color-coding based on whether or not missions were a success or failure.
Write some notes about what GraphQL is, differences from a REST API, how to use it, etc.
Search and the numerical filter are currently displayed on all site components, including PokemonInfo
, where they are not functional. Move these into a separate component and render that from App.js
instead.
Search is currently case-sensitive. Ignore case.
See title.
The search form on the site homepage is currently left-aligned. Align center.
Update styling for the statistics section of the PokemonInfo
component from default bootstrap list.
Import the AutoComplete
component from antd
and populate with pokemon names.
Create SinglePokemon
component with a gql
query that retrieves the name, sprite, and type. Map each element of the data received in the query of MultiPokemon
to a SinglePokemon
. Display cards with name, sprite, and type.
Use react useState
and useEffect
hooks to create a button to show search bar. Enable live-searching by using value entered in search box to display matching pokemon.
There is currently no way to navigate back to the homepage other than the Back button at the bottom of the PokemonInfo
component, which is not always immediately noticable. Use react-router-dom.Link
to wrap the site header in a Link back to the homepage using the "/" route.
Update default bootstrap badge styling for pokemon types. Assign a new color indicator for each type.
Create a simple express server with GraphQL, along with a schema for requesting a list of pokemon as well as individual pokemon and their respective properties.
Prepare required build scripts, code changes, files, and directories and deploy to Heroku.
Apply GraphQL
knowledge to make requests to the SpaceX API and retrieve data about launches and rockets.
Create a PokemonInfo
component to display detailed pokemon information. Use react-router-dom
to link between different site pages.
useState
react hook in the App
component to track component state inside of a form that takes numerical input. Pass this input as props to the MultiPokemon
component, which is rendered through react-router-dom
's render
property.useEffect
react hook in the MultiPokemon
component so that the number of SinglePokemon
components rendered reacts to the value of the num
prop.gql
query inside of the MultiPokemon
component so that it takes an Integer variable. Use the num
prop that was passed through App
to MultiPokemon
as a variable in the Query
component.pokemonSpecies
query that retrieves an API endpoint for an evolution chain
evolutionChain
query that retrieves a nested chain of pokemon evolutions:
Species
component to make a pokemonSpecies
query and house an EvolutionChain
component. This component will be passed a url from its parent PokemonInfo
component.EvolutionChain
component to make an evolutionChain
query and render a SinglePokemon
component for each evolution.npm run build
build
folder to public
and move to root.ApolloClient
uri, add process.env.PORT
, add client proxygit subtree push --prefix graphql-pokemon heroku master
The EvolutionChain
component currently causes the app to crash when a pokemon has no evolution. Fix this bug.
Extend graphql singlePokemon
query to include pokemon id numbers. Add id numbers to the SinglePokemon
and PokemonInfo
components.
Create a Launch
component that returns further launch details on button press.
The AutoComplete
should only display options for pokemon that are currently displayed, based on the displayNum
property. Currently, it provides options for all 900 pokemon.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.