finopsapp / poc

MIT License
0 stars 0 forks source link

Setup tech (firebase, repo with empty project etc.) #7

Open jakubkrzysztofsikora opened 2 years ago

jakubkrzysztofsikora commented 2 years ago

cra chakra express

initialize Firebase and begin using the SDKs for the products you'd like to use.

npm install firebase

// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
  apiKey: "AIzaSyAi56mYLyJhmsyqjlmpSDDZ9R9VStb_LKE",
  authDomain: "finops-9a824.firebaseapp.com",
  projectId: "finops-9a824",
  storageBucket: "finops-9a824.appspot.com",
  messagingSenderId: "667753376532",
  appId: "1:667753376532:web:42914fb1da9c0cffa73001",
  measurementId: "G-9KYZ3GKW0Q"
};

// Initialize Firebase
const app = initializeApp(firebaseConfig);
const analytics = getAnalytics(app);

To host your site with Firebase Hosting, you need the Firebase CLI (a command line tool).

Run the following npm command to install the CLI or update to the latest CLI version.

npm install -g firebase-tools

You can deploy now or later. To deploy now, open a terminal window, then navigate to or create a root directory for your web app.

Sign in to Google

firebase login

Initiate your project Run this command from your app’s root directory:

firebase init

When you’re ready, deploy your web app Put your static files (e.g., HTML, CSS, JS) in your app’s deploy directory (the default is “public”). Then, run this command from your app’s root directory:

firebase deploy

After deploying, view your app at finops-9a824.web.app Need help? Check out the Hosting docs

tarnas14 commented 2 years ago

I've recently found this: https://supabase.com/

looks cool, I might get into this