Git Product home page Git Product logo

refine-firebase's Introduction

  • 👋 Hi, I’m Resul TURAN

About Me

I'm a Full-Stack Web Developer currently working as a Frontend Team Lead at Gesund.ai. My expertise primarily lies in TypeScript for programming, with proficiency in React for UI development. I'm also skilled in backend development using Express.js and Nest.js. I have experience with medical imaging/annotation projects using Cornerstone.js and OHIF, and I'm familiar with deployment tools like Docker, NGINX, and Caddy Server. I utilize ONNX runtime web for running AI models directly on the UI, particularly leveraging the Segment-Anything model. For CI/CD, I rely on GitHub Actions, and I use Cloudflare for DNS, Cache, and Network management. Additionally, I have experience with cloud services such as AWS, Azure, and Google Cloud.

Side Project

Apart from my professional work, I'm involved in a side project focused on enhancing the workflow and productivity of ML developers. This project utilizes NX.js, React, Nest.js, Go, and NGINX. It includes a user interface, two backend services, and a CLI tool tailored specifically for ML developers. I'm excited about advancing my skills through this project and contributing to the ML developer community.

Get in Touch

Driven by my passion for coding and a deep understanding of web development, I'm committed to creating innovative applications and delivering impactful solutions as a Full-Stack Web Developer. Connect with me on LinkedIn for collaborations or discussions.

🛠  Tech Stack

Typescript  JavasSript  Go  react  next.js  Node.js  nestjs  MongoDB  Firebase  Redux  Redux-Saga  HTML  CSS  SASS  Git  ONNX  OpenCV  FabricJS  Cornerstone  OpenSeaDragon  Amcharts  Orthanc 

⚙️  GitHub Analytics

Resul TURAN's github stats 

Top Langs

  • 📫 How to reach me ... gmail

refine-firebase's People

Contributors

resulturan avatar samelhusseini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

refine-firebase's Issues

Edit is not working

I received success toast and didn't receive any error message even though console log in browser, but the data didn't update

meta populate not populating related collections

Am trying to populate customer which is a string that refers to a firestore document for a Customer but its populating
const { listProps, setFilters, searchFormProps } = useSimpleList<IOrder, HttpError, ISearch>({
meta: {
populate: {
customer: { populate: ["customers"] },
createdBy: { populate: ["users"] },
},
},

My Interfaces

export interface ICustomer {
id: string;
dob: string | null,
orderCount: number,
district: string,
lastName: string,
firstName: string,
employeeNumber: string,
maritalStatus: string | null,
nrc: string,
institution: string,
primaryPhoneNumber: string,
createdBy: string,
title: string,
timeStamp: {
seconds: number,
nanoseconds: number
},
department: string,
secondaryPhoneNumber: string | null
}

export interface IOrder {
id: string;
timeStamp: {
seconds: number | null,
nanoseconds: number | null
},
customer: ICustomer,
numberOfInstallments: string | null,
reserveAttachment: boolean,
lastName: string,
comment: string | null,
monthOfLastDeduct: string | null,
itemNum: number,
totalPrice: string,
employeeNumber: string,
formType: string,
accountName: string | null,
orderStatus: string,
nrc: string,
installmentAmount: string | null,
isCollected: boolean,
accountNumber: string | null,
firstName: string,
collectionDate: string | null,
monthOfFirstDeduct: string | null,
attachments: [] | null,
createdBy: ICustomer,
bankName: string | null,
branchName: string | null
}

anyway to get the related collections documents?

TypeError: Cannot read properties of undefined (reading 'firebaseApp')

Hi, when trying to use this wih my project I get this error:
TypeError: Cannot read properties of undefined (reading 'firebaseApp')

My firebaseConfig.ts file

  import { 
    initializeFirebase,
    FirebaseAuth,
    FirebaseDatabase,
    FirestoreDatabase,
  } from "refine-firebase"; 
  const firebaseConfig = {
    apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
    authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
    databaseURL: process.env.NEXT_PUBLIC_FIREBASE_DATABASE_URL,
    projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,
    storageBucket: process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,
    messagingSenderId: process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID,
    appId: process.env.NEXT_PUBLIC_FIREBASE_APP_ID,
  };
  
  export const firebaseApp = initializeFirebase(firebaseConfig);
  
  export const firebaseAuth = new FirebaseAuth();
  
  export const firestoreDatabase = new FirestoreDatabase();
  
  export const firebaseDatabase = new FirebaseDatabase();

Firebase: Error (auth/missing-email)

Hi,
I'm starting a new app with refine and I'm trying to connect it to my Firebase. I'm getting an "Firebase: Error (auth/missing-email)" when trying to login in using firebase auth provider.

image

I'm only having Google sign-in provider enable on firebase side.

Error: Component auth has not been registered yet

Hey there 👋🏼 thanks for building this library!

I'm struggling to get everything to work with a brand new refine project.
I get the error:
Error: Component auth has not been registered yet

This is my firebase.ts file:

import {
    initializeFirebase,
    FirebaseAuth,
    FirebaseDatabase,
    FirestoreDatabase
} from "refine-firebase";

export const firebaseConfig = {
    apiKey: "xxx",
    authDomain: "xxx",
    projectId: "xxx",
    storageBucket: "xxx",
    messagingSenderId: "xxx",
    appId: "xxx",
    measurementId: "xxx"
};

export const firebaseApp = initializeFirebase(firebaseConfig);

export const firebaseAuth = new FirebaseAuth(undefined, firebaseApp);

export const firestoreDatabase = new FirestoreDatabase({firebaseApp});

export const firebaseDatabase = new FirebaseDatabase({firebaseApp});

this is the intialization in _app.tsx:

dataProvider={firestoreDatabase.getDataProvider() as any}
authProvider={firebaseAuth.getAuthProvider()}

I tried a few other scenarios:

  • initializing without configs
  • initializing with initializeApp directly from firebase
  • removed and re-installed node_modules (as proposed here)

but nothing worked. Any advice?

No lib folder in node_modules

refine-firebase folder in node_modules comes without the lib folder when execute "npm i refine-firebase".

For using this module, I needed clone this project, build it and copy the lib folder to my refine project.

i can't use this firebase dataprovider with refine

Refine version: "@pankod/refine-core": "^3.18.0"

my firebase.ts

import { 
    initializeFirebase,
    FirebaseAuth,
    FirebaseDatabase,
    FirestoreDatabase,    
} from 'refine-firebase/lib';



const firebaseConfig = {
  apiKey: process.env.REACT_APP_FIREBASE_API_KEY,
  authDomain: process.env.REACT_APP_FIREBASE_AUTH_DOMAIN,
  databaseURL: process.env.REACT_APP_FIREBASE_DATABASE_URL,
  projectId: process.env.REACT_APP_FIREBASE_PROJECT_ID,
  storageBucket: process.env.REACT_APP_FIREBASE_STORAGE_BUCKET,
  messagingSenderId: process.env.REACT_APP_FIREBASE_SENDER_ID,
  appId: process.env.REACT_APP_FIREBASE_APP_ID 
}

export const firebaseApp = initializeFirebase(firebaseConfig);

export const firebaseAuth = new FirebaseAuth();
export const firestoreDatabase = new FirestoreDatabase();
export const firebaseDatabase = new FirebaseDatabase();

my App.tsx

import { firestoreDatabase } from "./firebase";
<Refine
          ...
          dataProvider={firestoreDatabase.getDataProvider()}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.