In the name of ALLAH, who has guided me to do this work
Simple ecommerce react js app with firebase [typescript].
$ yarn install
Login to your google account and create a new firebase project here
Create an .env
file and add the following variables.
// SAMPLE CONFIG .env, you should put the actual config details found on your project settings
VITE_FIREBASE_API_KEY=AIzaKJgkjhSdfSgkjhdkKJdkjowf
VITE_FIREBASE_AUTH_DOMAIN=yourauthdomin.firebaseapp.com
VITE_FIREBASE_DB_URL=https://yourdburl.firebaseio.com
VITE_FIREBASE_PROJECT_ID=yourproject-id
VITE_FIREBASE_STORAGE_BUCKET=yourstoragebucket.appspot.com
VITE_FIREBASE_MSG_SENDER_ID=43597918523958
VITE_FIREBASE_APP_ID=234598789798798fg3-034
VITE_FIREBASE_MEASUREMENT_ID=G-SOMETHING
VITE_CURRENCY=USD
VITE_COUNTRY=us
After setting up necessary configuration, create a Database and choose Cloud Firestore and start in test mode
$ yarn dev
$ yarn build
- 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