This project uses Python3, NPM(optional) and Docker.
Docker is the preferred way of setting up the project. It will resolve most cross OS compatibility issues.
Docker provides an easy installation process to get the project running in your local machine with near zero-configuration.
-
Open Git Bash(Windows) or Terminal(MacOS or Linux)
-
Clone your project in your desired folder by using
cd
to change directorygit clone https://github.com/leogoesger/FFF-connectors cd FFF-connectors/
-
cd
into the path ofFFF-connections
directory, then runshell
scriptcd path/to/FFF-connectors ./build.sh
II. Using Anaconda Spyder (Mac OS and Windows)
-
Clone your project in Terminal or download the entire repo from Github
git clone https://github.com/leogoesger/FFF-connectors cd FFF-connectors/
-
Open the folder from Spyder
-
You may need to install these packages if you do not already have them locally
six==1.11.0 inquirer==2.2.0 rasterio==0.36.0
-
Click on
main.py
andrun
-
Install Python3, Git and a text editor of your choice.
-
Clone your project in Terminal
git clone https://github.com/leogoesger/FFF-connectors cd FFF-connectors/
-
Create and activate virtualenv
npm setup source my-virtualenv/bin/activate
-
Install dependencies
npm install
If you chose not to install npm, use
pip
as following:pip install -r requirement.txt
-
Install Python3, Git and a text editor of your choice.
-
Add Python to System Path
-
Locate
Python3
from your local computer. Usually located in the following folder:C:\python3
or
C:\Users\your-namprojectData\Local\Programs\Python\Python36-32
-
Follow this link from step 2 to the end.
-
Go into Command Prompt by typing
cmd
in search bar, and typepython
. You should see the following:Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) [GCC 4.2.1projectle Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>
-
Type
exit()
to exit the python shell.
-
-
Clone your project in Command Prompt
git clone https://github.com/leogoesger/FFF-connectors cd FFF-connectors
-
Create and activate virtualenv
python -m venv my-virtualenv my-virtualenv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
With Docker. Use Git Bash or Terminal
./run.sh
NOTE: If it does not recognize the command, you can open the
run.sh
with a text editor. Copy what's inside and paste to your Bash/Terminal. You may also need to prefix the command with the warning. -
With Spyder, click on main.py and
run
-
All others, navigate to project directory, use
npm
withnpm start
or using
python
direcly as following:python main.py
First enter virtualenv
with previously discussed steps in project directory.
npm test
or using python
directly as following:
python -m unittest discover -v
Use JIRA to keep upload error message, a screen shot, and raw data file used
iTerm: iTerm2 is a replacement for Terminal in MacOS
Copyright (c) 2018
Licensed under the MIT license.