Difference between revisions of "Team:Michigan Software/Installation"

 
(11 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
               <br>
 
               <br>
 
               <br>
 
               <br>
              <br>
 
              <p>
 
 
               <h1 class="grey-text heading-weight" align = "center">Follow These Steps</h1>
 
               <h1 class="grey-text heading-weight" align = "center">Follow These Steps</h1>
              </p>
 
              <br>
 
 
               <div class="row" style="border-bottom:thin solid;"></div>
 
               <div class="row" style="border-bottom:thin solid;"></div>
              <br>
 
 
               <br>
 
               <br>
 
               <p id = "doubleSpace" class="p-font grey-text">If you have are planning to run this on a Ubuntu development computer,  
 
               <p id = "doubleSpace" class="p-font grey-text">If you have are planning to run this on a Ubuntu development computer,  
 
               you must install additional packages in order to get the Pip package Pillow. To do this, enter into your terminal:</p>
 
               you must install additional packages in order to get the Pip package Pillow. To do this, enter into your terminal:</p>
 +
             
 +
              <div style = "background-color: #f6f8fa; overflow: auto; padding-top: 16px; padding-bottom: 16px; ">
 +
              <code style = "color: black; background-color: transparent; word-wrap: normal;  overflow: visible" id = "doubleSpace" class="p-font grey-text">sudo apt-get install python-
 +
              dev</code>
 
               <br>
 
               <br>
               <div style = "background-color: #f6f8fa; overflow: auto; padding 20px; ">
+
              <code  style = "color: black; background-color: transparent; word-wrap: normal;  overflow: visible" id = "doubleSpace" class="p-font grey-text">sudo apt-get install libtiff5-
               <code style = "background-color: transparent; word-wrap: normal;  overflow: visible" id = "doubleSpace" class="p-font grey-text">sudo apt-get install python-dev</code>
+
              dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6 dev python-tk</code>
 +
              </div>
 +
              <br>   
 +
              <p  id = "doubleSpace" class="p-font grey-text">Next, you must have Python 2.7, 3.4, or 3.5 installed on your computer and accessible on the terminal as well as pip (may
 +
              be already installed when you installed Python). This software comes default on Ubuntu and Mac, but on Windows you must get an installation from the <a style = "color: #0366d6; text-decoration: none" href =
 +
              "https://www.python.org/downloads/release/python-350/">Python website.</a>
 +
              Then, install Django 1.9 or 1.10, Pillow, djangorestframework, drfdocs, and bleach through the command on Linux: </p>
 +
 
 +
               <div style = "background-color: #f6f8fa; overflow: auto; padding-top: 16px; padding-bottom: 16px; ">
 +
               <code style = "color: black; background-color: transparent; word-wrap: normal;  overflow: visible" id = "doubleSpace" class="p-font grey-text">sudo pip install django Pillow
 +
              djangorestframework drfdocs bleach</code>
 +
              </div>
 +
              <br>
 +
              <p  id = "doubleSpace" class="p-font grey-text">Or on Windows:</p>
 +
 
 +
              <div style = "background-color: #f6f8fa; overflow: auto; padding-top: 16px; padding-bottom: 16px; ">
 +
              <code style = "color: black; background-color: transparent; word-wrap: normal;  overflow: visible" id = "doubleSpace" class="p-font grey-text">pip install django Pillow d
 +
              jangorestframework drfdocs bleach</code>
 +
              </div>
 
               <br>
 
               <br>
               <code id = "doubleSpace" class="p-font grey-text">sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6 dev python-tk</code>
+
               <id = "doubleSpace" class="p-font grey-text">Then, to install our software, if you have git installed on your computer, simply type</p>
 +
 
 +
              <div style = "background-color: #f6f8fa; overflow: auto; padding-top: 16px; padding-bottom: 16px; ">
 +
                <code style = "color: black; background-color: transparent; word-wrap: normal;  overflow: visible" id = "doubleSpace" class="p-font grey-text">git clone
 +
                https://github.com/MiBioSoft2017/ProtoCat4.git</code>
 +
              </div>
 +
                <br>
 +
              <p  id = "doubleSpace" class="p-font grey-text">Otherwise, you can go to the <a style = "color: #0366d6; text-decoration: none href =
 +
              "https://github.com/MiBioSoft2017/ProtoCat4.git">Github page</a> and click download there.</p>
 +
                <br>
  
 +
              <p  id = "doubleSpace" class="p-font grey-text">Now, open up a terminal/command prompt and go into the newly downloaded folder (default name Michigan16) and type in
 +
              the follow:</p>
 +
              <div style = "background-color: #f6f8fa; overflow: auto; padding-top: 16px; padding-bottom: 16px; ">
 +
              <code style = "color: black; background-color: transparent; word-wrap: normal;  overflow: visible" id = "doubleSpace" class="p-font grey-text">cd mibiosoft</code>
 +
                <br>
 +
              <code style = "color: black; background-color: transparent; word-wrap: normal;  overflow: visible" id = "doubleSpace" class="p-font grey-text">python manage.py
 +
                makemigrations</code> <br>
 +
              <code style = "color: black; background-color: transparent; word-wrap: normal;  overflow: visible" id = "doubleSpace" class="p-font grey-text">python manage.py
 +
                migrate</code><br>
 +
              <code style = "color: black; background-color: transparent; word-wrap: normal;  overflow: visible" id = "doubleSpace" class="p-font grey-text">python manage.py runserver
 +
                0.0.0.0:8000</code>
 
               </div>
 
               </div>
 
               <br>
 
               <br>

Latest revision as of 19:47, 1 November 2017

Installation



Follow These Steps


If you have are planning to run this on a Ubuntu development computer, you must install additional packages in order to get the Pip package Pillow. To do this, enter into your terminal:

sudo apt-get install python- dev
sudo apt-get install libtiff5- dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6 dev python-tk

Next, you must have Python 2.7, 3.4, or 3.5 installed on your computer and accessible on the terminal as well as pip (may be already installed when you installed Python). This software comes default on Ubuntu and Mac, but on Windows you must get an installation from the Python website. Then, install Django 1.9 or 1.10, Pillow, djangorestframework, drfdocs, and bleach through the command on Linux:

sudo pip install django Pillow djangorestframework drfdocs bleach

Or on Windows:

pip install django Pillow d jangorestframework drfdocs bleach

Then, to install our software, if you have git installed on your computer, simply type

git clone https://github.com/MiBioSoft2017/ProtoCat4.git

Otherwise, you can go to the Github page and click download there.


Now, open up a terminal/command prompt and go into the newly downloaded folder (default name Michigan16) and type in the follow:

cd mibiosoft
python manage.py makemigrations
python manage.py migrate
python manage.py runserver 0.0.0.0:8000