Giter VIP home page Giter VIP logo

svelte-pokedex's Introduction

Hi! I'm Sammy. ๐Ÿ‘‹

LinkedIn Medium

Hello! I am a software engineer. My focus is on e2e JavaScript/TypeScript and web development.

I am a down-to-earth colleague and enjoy helping other developers grow. I am completely self-taught (no bootcamp, no CS degree!) and understand how hard it can be to learn to code.

When not coding, I am probably cooking or eating; I'd say that food is my passion! I particularly enjoy making ramen and pasta, and geeking out on food science.

svelte-pokedex's People

Contributors

siuangie91 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

svelte-pokedex's Issues

Cache GQL requests

Update SvelteKit version to `1.0.0-next.588` to prep for migration to 1.0

SvelteKit 1.0 was just released. This app is still on the beta version.

Before migrating to 1.0, need to update to the last one before 1.0. Probably should do an npm install --save-exact for all of these.

1. Lock in current version so that main uses the exact version.

Update package.json so that npm install installs the exact version it's on right now, and not next.

"@sveltejs/adapter-auto": "next",

"@sveltejs/kit": "next",

From package-lock.json, the exact versions are:

"node_modules/@sveltejs/adapter-auto": {
"version": "1.0.0-next.55",

"node_modules/@sveltejs/kit": {
"version": "1.0.0-next.367",

2. Upgrade to 1.0.0-next.588.

  1. Upgrade to @sveltejs/[email protected].
  2. Make sure errors are resolved and app works.
  3. Repeat with @sveltejs/[email protected].

Full details in sveltejs/kit#5774.


Migration to 1.0 will be done in #96

Update readme

  • learning goals
    • Github actions for CI/CD
    • svelte
    • sveltekit
    • svelte testing library
    • e2e testing with playwright
    • TypeScript
    • tailwind css
    • setting up conventional commits
  • demo link

Refactor querying to use GraphQL

Setting up GraphQL on Svelte

https://hasura.io/learn/graphql/svelte-apollo/apollo-client/

PokeAPI:

Docs: https://pokeapi.co/docs/graphql
GraphiQL playground: https://beta.pokeapi.co/graphql/console/

/index

query First20Gen1($id: Int!) {
  gen1: pokemon_v2_generation_by_pk(id: $id) {
    name
    species: pokemon_v2_pokemonspecies(
      limit: 20, 
      order_by: {id: asc}
    ) {
      pokemons: pokemon_v2_pokemons {
        id
        name
        forms: pokemon_v2_pokemonforms {
          sprites: pokemon_v2_pokemonformsprites {
            sprites
          }
        }
      }
    }
  }
}

/pokemon/:name

query Pokemon($id: Int!) {
  pokemon: pokemon_v2_pokemon_by_pk(id: $id) {
    id
    name
    types: pokemon_v2_pokemontypes {
      type: pokemon_v2_type {
        name
      }
    }
    species: pokemon_v2_pokemonspecy {
      name
      description: pokemon_v2_pokemonspeciesflavortexts(
        where: {
          language_id: {_eq: 9} # en-us
        },
        order_by: { id: desc }
        limit: 3
      ) {
        id
        flavor_text
      }
      evolution_chain:pokemon_v2_evolutionchain {
        chain:pokemon_v2_pokemonspecies {
          id
          name
        }
      }
    }
    pokemon_type: pokemon_v2_pokemontypes {
      type: pokemon_v2_type {
        name
      }
    }
    images: pokemon_v2_pokemonsprites {
      sprites
    }
  }
}

Set up nvmrc

16.16.0

In package.json:

"engines": {
    "node": "16.16.0"
},

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.