Skip to main content

Get your Daily Recipes

Project description

Empty My Fridage (Django)

What is empty my Fridge app?:

Github link

Empty My Fridge

PYPI

empty-my-fridge 1.0.3

Install using command

  • pip install empty-my-fridge

Run app using

  • empty_my_fridge

Python FrameWork

Libraries/Tools

Pyrebase

BeautifulSoup

Semantic Ui or fomantic Ui css (currently, Semantic Ui)

Templates

  • HTML, CSS, and JS (Snippets)

Using Semantic Ui

  • Add this to your HTMl file in the head tag. You can ignore the semantic.min.js in the script tag
<link
  rel="stylesheet"
  href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css"
/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script>
  • It should look like this. Remember, this is just an example to help you know where it needs to put in the HTML file
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Sign Up</title>
    <link
      rel="stylesheet"
      href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css"
    />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script>
  </head>
  <body>
    <!--Your semantic UI here. Example below-->
    <button style="margin: 10;" type="submit" class="ui button fluid red">
      Create Account
    </button>
  </body>
</html>

Steps

pip install Django==3.0.7

pip install pyrebase

pip install beautifulsoup4

Get Firebase Database Config file Set up

Create a config file in the cpanel/cpanel folder. Also, make sure you get the snippet for your app's Firebase config object--this is found in your project settings

For security reasons, you should exclude the config.py module when exporting project into Github (Don't mind this since gitignore does it anyways)

Example:

def myConfig():
  config = {
    'apiKey': "api-key",
    'authDomain': "project-id.firebaseapp.com",
    'databaseURL': "https://project-id.firebaseio.com",
    'projectId': "project-id",
    'storageBucket': "project-id.appspot.com",
    'messagingSenderId': "sender-id",
    'appId': "app-id",
    'measurementId': "G-measurement-id"
  }
  return config

Get the App running for the first time

  • python manage.py

Using Github

Each of us will create their own respective branches apart from MASTER

use command -> git checkout -b < branchName >

  • To pull from Github, use: git pull origin < branchName >

Deploy from local to remote

  • git add .
  • git commit -m "message that represents your recent changes"
  • git push origin < branchName >

Note:

Refrain from pushing to master. push to your branch and allow the scrum master to review your work before pushing to master

Deploy App to Google Cloud or Heroku

SetUp file

  • python -m pip install -U wheel twine setuptools
  • python setup.py sdist
  • python setup.py bdist_wheel
  • twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

empty_my_fridge-1.0.5.tar.gz (214.2 kB view hashes)

Uploaded Source

Built Distribution

empty_my_fridge-1.0.5-py3-none-any.whl (235.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page