Skip to content

Instantly share code, notes, and snippets.

@abhi1010
Last active September 24, 2015 05:21
Show Gist options
  • Save abhi1010/4abe627f00751a71348b to your computer and use it in GitHub Desktop.
Save abhi1010/4abe627f00751a71348b to your computer and use it in GitHub Desktop.
reconwise ifast demo setup
git clone https://bitbucket.org/tildesg/reconwisev2.git
cd reconwisev2
git fetch && git checkout ifastdemo
git pull
cd ../
virtualenv -p python3.4 ve_rw2
source ve_rw2/bin/activate
pip install -r reconwisev2/requirements.txt
cd reconwisev2/rw/
mkdir media/log
python3.4 manage.py runserver
curl -Fclient=GH -F"Newedge CME T+1.20141103.zip=@/Users/apandey/Downloads/Reconwise Demo/Source Files/Newedge CME T+1.20141103.zip" localhost:8000/confo/upload/

The way to upload a file is to put the broker and client files into a zip file first (without any folder) Use the following alias for it.

  export URL='localhost:8000'
  export FULL_PATH_TO_FILES=''
  export DATE_FOR_DEMO='2015-09-01'
  alias cu='curl -Fclient=iFast -F"iFast files.$DATE_FOR_DEMO.zip=@$FULL_PATH_TO_FILES" $URL/confo/upload/'

Now you can just upload by calling cu

@simkimsia
Copy link

demo for good confo result

  export URL='localhost:8000'
  export FULL_PATH_TO_FILES_06Sept='/src/Apps/iFastRecon/inputfiles/Recon06Sept.zip'
  export DATE_FOR_DEMO_06Sept='2015-09-06'
  alias cu_good='curl -Fclient=iFast -F"iFast files.$DATE_FOR_DEMO_06Sept.zip=@$FULL_PATH_TO_FILES_06Sept" $URL/confo/upload/'

demo for bad confo result

  export FULL_PATH_TO_FILES_07Sept='/src/Apps/iFastRecon/inputfiles/Recon07Sept.zip'
  export DATE_FOR_DEMO_07Sept='2015-09-07'
  alias cu_bad='curl -Fclient=iFast -F"iFast files.$DATE_FOR_DEMO_07Sept.zip=@$FULL_PATH_TO_FILES_07Sept" $URL/confo/upload/'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment