Created firebase example for both client and server side