beringar / 202201-w3-we-berenguer-pou

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Beringar Pokémons App

Configs: put here stack, tooling, etc...

Development journal

  1. Added Config development environment
  • eslint
  • eslint config prettier
  • husky (hooks: pre-commit, pre-push, commit-msg)
  • babel plugin to manage import/export --> commonJS
  • jest and @types/jest
  • sass
  • bootstrap5
  • github workflow audit.yml
  1. setup folder structure
  2. added scripts in package.json:
  • "compile-sass": "sass src/scss/styles.scss public/css/styles.css"
  • "compile-sass-watch": "sass --watch src/scss/styles.scss public/css/styles.css"
  1. added Component component
  2. added PageComponent component
  • added basic html structure: header, main, footer
  1. added MenuComponent component
  • 2 tests OK.
  1. added MenuItemComponent components
  • 4 tests OK.
  1. added PokemonCardComponent
  • 3 tests OK.
  1. implement get data from pokeAPI

  2. implement paginated data fetching. OK

  • BUGFIX: pagination when in last page, modifies offset value. Fix later, after CRUD
  1. implement POST pokemon to mypokemonsAPI
  • added function addPokemonToCollection
  • passed action in button 1 when instantiate PokemonCard component --> addPokemonToCollection()
  1. implemented ButtonComponent component to inject actions to cards conditionally (if main page(pokeapi), if mypokemons(myapi))

  2. implemented removePokemonFromCollection in PageComponent component (if main page(pokeapi), if mypokemons(myapi))

  3. added and deployed mipokeapi app to Heroku (api url: https://mypokeapi.herokuapp.com/)

  • tested ok. GET, ADD, and DELETE methods are working.
  1. added PokemonDetailComponent
  • added form tu update Name and description (in PUT method)

About


Languages

Language:JavaScript 79.5%Language:SCSS 11.1%Language:Shell 5.1%Language:HTML 4.3%