Simple ecommerce react js app with firebase [typescript].
- cd ecommerce-react/
- git switch ft_frontend
- actualizar node a la versión 18
- sudo npm install --global yarn 6 yarn install
- npm install -g firebase-tools
- ejecutar el comando "firebase" para comprobar si se instaló correctamente
- yarn add [email protected]
- crear un archivo .env que tenga lo siguiente:
VITE_FIREBASE_API_KEY=***************************
VITE_FIREBASE_AUTH_DOMAIN=ecommerce-joyassol.firebaseapp.com
VITE_FIREBASE_DB_URL=https://ecommerce-joyassol.firebaseio.com/
VITE_FIREBASE_PROJECT_ID=ecommerce-joyassol
VITE_FIREBASE_STORAGE_BUCKET=ecommerce-joyassol.appspot.com
VITE_FIREBASE_MSG_SENDER_ID=1234567890123456
VITE_FIREBASE_APP_ID=*****************************
- yarn dev
$ yarn build
-
yarn install
-
yarn build
-
comprobar funcionamiento con
firebase serve --only hosting
-
firebase deploy --only hosting
- Navigate to your site to
/signup
- Create an account for yourself
- Go to your firestore collection
users collection
and edit the account you've just created. Change the role fromUSER
toADMIN
. - Reload or sigin again to see the changes.
Firebase Admin to be integrated soon
- Admin CRUD operations
- Firebase authentication
- Firebase auth provider authentication
- Account creation and edit