code with firebase platform