From: Sofia Asmi <[email-masked]>
Date: Fri, 13 Sep 2019 14:20:46 +0200

Hi Dennis,

I don't have my computer right now so I'll just send it here :
(I'll send a clean version this monday)

The latest GitHub is automatically updated on the heroku account which
means that when he will download locally all the files he will have the
latest version on his computer.

Best,
Sofia

DJANGO
Django website

1. install python3 :

https://urldefense.proofpoint.com/v2/url?u=https-3A__programwithus.com_learn-2Dto-2Dcode_install-2Dpython3-2Dmac_&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=LF_PlArhgMFe1fKaQboITliB6puCplrL0nOOW3KLN3Q&e= 

without xcode 

First start by installing Homebrew

Homebrew is a free <https://urldefense.proofpoint.com/v2/url?u=https-3A__en.wikipedia.org_wiki_Free-5Fsoftware&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=n7bzrSmKTkQdHLo74Q9a9LyiCm59UPTv8BiDtvtSPaY&e= > and
open-source <https://urldefense.proofpoint.com/v2/url?u=https-3A__en.wikipedia.org_wiki_Open-2Dsource-5Fsoftware&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=SwaLPJ-guu5D443RdPNadlm__ak3z3NJpVVFLb1MicU&e= >
software package
management system <https://urldefense.proofpoint.com/v2/url?u=https-3A__en.wikipedia.org_wiki_Package-5Fmanager&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=_jsG-VBbF_0LCkLvkqQxXMMPTk3wAu0mjxzXleFRTJA&e= > that
simplifies the installation of software on Apple's
<https://urldefense.proofpoint.com/v2/url?u=https-3A__en.wikipedia.org_wiki_Apple-5FInc&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=tBeqNZCpOWUtl5azpIP2yd5z7AaWZ1-Xcw9aTGbOBT4&e= .> macOS
<https://urldefense.proofpoint.com/v2/url?u=https-3A__en.wikipedia.org_wiki_MacOS&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=S5eZxxpiOy_RF33M2oYGD7CoHXy-_Nv0lAbdlL_JaBI&e= > operating system and Linux
<https://urldefense.proofpoint.com/v2/url?u=https-3A__en.wikipedia.org_wiki_Linux&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=jecMUEC9oRnXZNlwUxWXbjwCIsuKbd_JWODsTnVFb1o&e= >.

Install Python3 using Brew

brew install python3

2. install pip

https://urldefense.proofpoint.com/v2/url?u=https-3A__pip.pypa.io_en_stable_installing_&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=iK2_fa48Ntfz8ou-tXb6u_WYRGIN2DeJAboBQUFUSMA&e= 

use sudo

pip is a de facto standard package-management system used to install and
manage software packages written in Python.

To install pip, securely download get-pip.py
<https://urldefense.proofpoint.com/v2/url?u=https-3A__bootstrap.pypa.io_get-2Dpip.py&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=iHNyJo0kMeuwYjz1RVAucgyN1-sBNOA1_J1xx1GpWzE&e= >. 1
<https://urldefense.proofpoint.com/v2/url?u=https-3A__pip.pypa.io_en_stable_installing_-23id7&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=s84r9lTpA_AJ5FHBwuS0hz65Jz0J91ZRd30-SzUJvkw&e= >:

curl https://urldefense.proofpoint.com/v2/url?u=https-3A__bootstrap.pypa.io_get-2Dpip.py&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=iHNyJo0kMeuwYjz1RVAucgyN1-sBNOA1_J1xx1GpWzE&e=  -o get-pip.py

Then run the following:

sudo python get pip.py

3. install virtualenv

https://urldefense.proofpoint.com/v2/url?u=https-3A__virtualenv.pypa.io_en_latest_installation_&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=wV78fDeCoeGKDoOcTxaLD-FpnlIKryu8qKKJE_grjes&e= 

https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.djangoproject.com_en_2.2_intro_contributing_&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=CoCVTCfV3DHdCyT28rWFDwE7JGDUosvt5uX3gczF2TY&e= 

pip install --user virtualenv

you can install it just like you would install any package using pip. The
most convenient way to do so is by using a virtual environment, which is a
feature built into Python that allows you to keep a separate directory of
installed packages for each of your projects so that they don’t interfere
with each other.

It’s a good idea to keep all your virtual environments in one place, for
example in .virtualenvs/ in your home directory.

Create a new virtual environment by running:

python3 -m venv ~/.virtualenvs/djangodev

The path is where the new environment will be saved on your computer.

The final step in setting up your virtual environment is to activate it:

source ~/.virtualenvs/djangodev/bin/activate

If the source command is not available, you can try using a dot instead:

. ~/.virtualenvs/djangodev/bin/activate

4. install the django code

https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.djangoproject.com_en_2.2_topics_install_&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=SIgQi3PdttQen8EFxdckT6qGgKuE5hyC-vzHrqrDsrE&e= 

after you’ve created and activated a virtual environment, enter the command

$ pip install Django

5. install git
https://urldefense.proofpoint.com/v2/url?u=https-3A__git-2Dscm.com&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=wjXVwnwZsBaRF4njs2o8dEbnRN6UTprFlvaaNaJ_ZKM&e= 

In order to install git, download it directly from this website
https://urldefense.proofpoint.com/v2/url?u=https-3A__git-2Dscm.com&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=wjXVwnwZsBaRF4njs2o8dEbnRN6UTprFlvaaNaJ_ZKM&e=  following the instructions given

6. installing the development version

https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.djangoproject.com_en_2.2_topics_install_&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=SIgQi3PdttQen8EFxdckT6qGgKuE5hyC-vzHrqrDsrE&e= 

she did a git clone from github diet_optimizer
but that shouldn't be necessary for you.

Check out Django’s main development branch like so:

https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Readw1_diet-5Foptimizer-2Dmaster&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=Ux9ddNtXdAjB28kusPW1m1Um_PSahjqGpOTMo24vukk&e= 

DEPLOYING WITH GIT

https://urldefense.proofpoint.com/v2/url?u=https-3A__devcenter.heroku.com_articles_git&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=KmqABRR43O_M8Y2d0g9-OOlCATV45Gk2npeTWL3Mp3o&e= 

heroku git:remote puis heroku git:clone

Prerequisites: Install Git and the Heroku CLI
<https://urldefense.proofpoint.com/v2/url?u=https-3A__devcenter.heroku.com_articles_git-23prerequisites-2Dinstall-2Dgit-2Dand-2Dthe-2Dheroku-2Dcli&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=lMI_CcrPSwOqJxSPsKkWgJMQv4VqS8k0S6N1wY6qHic&e= >

7. download and install heroku cli

download and install the macOS version from this website
https://urldefense.proofpoint.com/v2/url?u=https-3A__devcenter.heroku.com_articles_heroku-2Dcli-23download-2Dand-2Dinstall&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=WUWhVYWFPuXQgxAesw5yewmAZwobss_I9JW5Ygpwe-E&e= 

then

heroku git:remote

heroku git:clone 8. push changes to the main website git add
name_of_the_file.py git commit name_of_the_file.py "commentary on the
changes" git push heroku master

Le ven. 13 sept. 2019 à 13:12, Dennis Shasha <[email-masked]> a écrit :

>
> Dear Sofia,
>
> Please send (or re-send) the document explaining how to set up the
> diet site locally and how to update the main site.
>
> Also, of course, the credentials for the latest github.
>
> Warmly,
> Dennis
>

-- 
Sofia Asmi
Commerciale de Physique Strasbourg Ingénierie
Elève ingénieure à Télécom Physique Strasbourg
Tél : +33 (0)6 64 74 17 67
Mail : [email-masked]
Site internet de PSI : https://urldefense.proofpoint.com/v2/url?u=https-3A__physique-2Dingenierie.fr_&d=DwIFaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=m1h4-YpxP3ACZiXqshghFqmEkOdDmi24rLo2VFmTub8&m=0ooExu5B_VRu8G_Bgpb5jIUFt1gO4vs3CHqwzCPrFKI&s=EYcgmfaO0NN8qANzDlaNST_dsUiLqnxS97FPZWyFPIA&e=