Run commands
-
npm install
-
npm run dev
Run commands
-
npm install --global yarn
-
yarn install
-
yarn run dev
PASOS PARA CREAR UNA PAGINA WEB CON NEXT.JS
WARNINGS !!! No usar. ‘next-auth/client’ usar ‘next-auth/react’ El singIn Era con la client_id y secret_client_id que de da google Cloud despues de pedir la credencial en la página de google cloud!!!! dios!!! Los components en Pages empiezan con minuscule
-
En la terminal de mac hsacer ------> git clone https://github.com/sonnysangha/Amazon-starter-template-nextjs.git
-
Open project on vsc
-
Npm run dev (so that the project install Next)
-
Npm i
-
Npm i react
-
Npm I react-dom
-
Go to tailwind.config.js and hit command + save
-
Create src > components > Headers.js
-
On the higher level create next.config.js (add all domains without https and only up to .com)
-
Add the fakestoreapi.com
-
Close vsc and reopen (you change the configuration file, need to reopen)
-
Npm i @heroicons/react
-
Npm i react-responsive-carousel
-
npm i react-toastify
-
npm i sweetalert2
-
npm i tailwindcss
-
npm i @tailwindcss/line-clamp
-
Npm i @reduxjs/toolkit
-
npm i @headlessui/react
-
Global.css (copy from global.css)
-
Transform env.local.examples to —> env.local
-
Add firebase file with configuration + import firebase from ‘firebase’
{ a resolver
no suma el total de los precios problemas cuando muestro un solo porducto por id conectar con mercado libre window screenWidth es tomada mas chica { Cuando le pongo Fixed a los componentes me los renderizar en la ventana correcta, cuando no se lo pongo me deja el espacio blanco a la derecha Cuando le pongo Fixer a el banner se vuelve loco }
}