GithubHelp home page GithubHelp logo

nutrivision's Introduction

Firebase-django

A Python app without Firebase is like a chicken without a hen-house; if you don’t have a place to store your eggs, it’s time to re-think the farm. This app authenticates users through firebase and also lets users create and check report by firebase database query. Also users are able to upload and save files using firebase storage.

Requirements

  • Python 3.x
  • Django 2.1
  • pip 3
  • Pipenv : to create environment
  • Firebase console with a new project

Configure FIREBASE

  • Open your Firebase Console and Create new project by Selecting Add Project.
  • Navigate to Authentication on Dashboard and set SIGN-IN method Email/Password to enable.For first time add a manual user.
  • Now, navigate to Project Overview and select Add Firebase to WebApp now, copy config's for later use in Django.
  • Now Let's Get started for integrating Firebase with Python Django .

Installing Required Libraries

Installing Pip:

  • Download the get-pip.py installer script. If you're on Python 3.2, you'll need this version of get-pip.py instead. ...
  • Open the Command Prompt and navigate to the get-pip.py file.
  • Run the following command: python get-pip.py.

Installing Pyrebase:

  • Pyrebase is a Python interface to Firebase’s REST API. In layman’s terms, it allows you to use Python to manipulate your Firebase database. The documentation for Pyrebase can be found at Pyrebase
  • We will install the Pyrebase and its dependencies using pip : pip3 istall pyrebase

Insatll Django==2.1 using pip in vitualenv created by pipenv

Let's see how does it work:

Firebase Database tree:

Imgur

Simple Login:

Imgur

Simple Signup using Firebase Auth:

Imgur

Homepage:

Imgur

Create a report in Firebase:

Imgur

Check report:

Reports are saved with correct timestamp and date of upload with image upload option:

Reports page:

Imgur

Detail reports page:

Imgur

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.