README.md
changeset 78 37bb8e326446
parent 45 8d2fb4ec85d7
equal deleted inserted replaced
77:1b578edc1578 78:37bb8e326446
     1 
     1 
     2 # Mons software suite
     2 # Mons software suite
     3 
     3 
     4 To create the virtualenv:
     4 - To create the virtualenv:
     5 
     5 
     6 ```
     6 ```
     7 STATIC_DEPS=true pip install -r requirements.txt
     7 STATIC_DEPS=true pip install -r requirements.txt
     8 ```
     8 ```
     9 
     9 
    10 Usage for export_annotations.py:
    10 - Usage for export_annotations.py:
    11 
    11 
    12 ```
    12 ```
    13 python export_annotations.py -a http://localhost:8080/p/api/annotation -b http://localhost/~ymh/platform/ldtplatform/ -p  <project_guid> -E test -H ANNOT -v -v -s "2014-06-19T12:14:48+02" -R -P "{\"username\": \"<username>\",\"api_key\":\"<username api key>\"}"
    13 python export_annotations.py -a http://localhost:8080/p/api/annotation -b http://localhost/~ymh/platform/ldtplatform/ -p  <project_guid> -E test -H ANNOT -v -v -s "2014-06-19T12:14:48+02" -R -P "{\"username\": \"<username>\",\"api_key\":\"<username api key>\"}"
    14 ```
    14 ```
       
    15 
       
    16 - Alembic usage
       
    17   - upgrade: `alembic upgrade head`
       
    18   - migrate an existing database : `alembic stamp 3c78152eb874` then `alembic upgrade head`
       
    19   - Create empty database: launch application then `alembic stamp head`