latest version of node and npm. download
git clone https://github.com/bit-hug-learning/apikachu-store.git
cd apikachu-store
npm install
Start dev server
npm run start
Start storybook
npm run storybook
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
ormain
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
ordev
) once. Feature branches should only exist while the work is still in progress.
- 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
- Mobile: 320px
- Tablet: 768px
- Desktop: 1280px
Orden de las propiedades de los selectores:
- Posicionamiento: display, position(static, relative, absolute, etc), etc.
- Modelo caja: content(width,height,min/max), padding, border, margin
- Tipografía: font-family, font-size, font-weight, line-height, etc.
- Visuales-estética: color, background, border-radius, box-shadow, etc.
- 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: