Get your Daily Recipes
Project description
Empty My Fridage (Django)
What is empty my Fridge app?:
Github link
PYPI
Install using command
- pip install empty-my-fridge
Run app using
- empty_my_fridge
Python FrameWork
Libraries/Tools
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
-
We would have to look into this
-
We might need cloud functions to run our server on the hosting site
-
If those don't work now, we might consider using 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for empty_my_fridge-1.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3c8be401ee130b27aa6a1d4d7b5a69eacb7790b8407415a4b9e6be2c7ff7cc7 |
|
MD5 | 31fc66cf8603ce59d90b814b9e7a9aa9 |
|
BLAKE2b-256 | 137bf39473431f7c73c723ba52ef505bbaf65f9e13ac867e5df5d50a1f8153a8 |