Skip to content

Una SPA (Single Page Aplication) donde el usuario puede ver lista de pokemons, detalle de c/u, buscar y filtrarlos según tipo y agregarlo a favoritos.

Notifications You must be signed in to change notification settings

bit-hug-learning/apikachu-store

Repository files navigation

Apikachu logo

Apikachu store

1. Installation and usage

1.1 Prerequisites

latest version of node and npm. download

1.2 Installation

git clone https://github.com/bit-hug-learning/apikachu-store.git
cd apikachu-store
npm install

1.3 Development

Start dev server

npm run start

Start storybook

npm run storybook

2. Git

There are a set of rules to keep in mind:

  • Perform work in a feature branch. Why:

    Because this way all work is done in isolation on a dedicated branch rather than the main branch. It allows you to submit multiple pull requests without confusion. You can iterate without polluting the master branch with potentially unstable, unfinished code. read more...

  • Branch out from dev

    Why:

    This way, you can make sure that code in master will almost always build without problems, and can be mostly used directly for releases (this might be overkill for some projects).

  • Never push into dev or main branch. Make a Pull Request.

    Why:

    It notifies team members that they have completed a feature. It also enables easy peer-review of the code and dedicates forum for discussing the proposed feature.

  • Delete local and remote feature branches after merging. Why:

    It will clutter up your list of branches with dead branches. It ensures you only ever merge the branch back into (main or dev) once. Feature branches should only exist while the work is still in progress.

3. Documentation

  • Comment your code. Try to make it as clear as possible.
  • Don't use comments as an excuse for a bad code. Keep your code clean.
  • Don't use clean code as an excuse to not comment at all.
  • Keep comments relevant as your code evolves.
  • Recommended using JSDoc

4. Style Guide

4.1 Breakpoints

  • Mobile: 320px
  • Tablet: 768px
  • Desktop: 1280px

4.2 Properties order

Orden de las propiedades de los selectores:

  1. Posicionamiento: display, position(static, relative, absolute, etc), etc.
  2. Modelo caja: content(width,height,min/max), padding, border, margin
  3. Tipografía: font-family, font-size, font-weight, line-height, etc.
  4. Visuales-estética: color, background, border-radius, box-shadow, etc.
  5. Otros: transition, animation, etc.
  display:
  position:
  left/right/top/bottom:

  width/(min-max):
  height/(min-max):
  padding:
  margin:
  border:

  font-family:
  font-size:
  font-weight:
  line-height:

  color:
  background:
  border-radius:
  box-shadow:
  cursor:

  transition:
  animation-name:
  animation-duration:
  animation-iteration-count:

About

Una SPA (Single Page Aplication) donde el usuario puede ver lista de pokemons, detalle de c/u, buscar y filtrarlos según tipo y agregarlo a favoritos.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published