LawPal is platform that aims to make certain legal process simpler and give both the client and the lawyer a clear overview of what has and what is yet to be done.
Read more topics at: http://discourse.lawpal.com
The platform can be described as:
Every user of LawPal.com has a:
"user" account
which has a "client" profile
a "user" can be a
"customer"
who has 1 "company"
OR a "user" can be a
"lawyer"
who has 1 "firm"
a "customer"
can create 1 or more
"project"(s)
each project has 1 or more "transact"(ions)
each "transact"(ion) has many "todo" items
the "project" has 1 "lawyer" (or more ?tbd) assigned to it
easy_install pip
pip install virtualenv virtualenvwrapper
- Perform these steps
export WORKON_HOME=~/.virtualenvs
mkdir -p $WORKON_HOME
source /usr/local/bin/virtualenvwrapper.sh
echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bash_profile
-
mkvirtualenv --no-site-packages glynt
-
mkdir -p ~/Projects
-
cd ~/Projects
-
git clone git@github.com:rosscdh/glynt.git
-
cd glynt
-
pip install -r requirements.txt
: install update the required libraries (append --upgrade if you are not sure) -
fab rebuild_local
: will perform the following steps automatically:- ````cp conf/dev.local_settings.py glynt/local_settings.py```
python manage.py syncdb
: sync the database; and create the default user if there is not already onepython manage.py migrate
: perform the rest of the migrationspython manage.py loaddata sites cities_light transact
python manage.py check_permissions
# Creates the userena permissions- Thats it you can now
python manage.py runserver_plus
- access http://local.weareml.com:8000/ (you may need to add 127.0.0.1 local.weareml.com to your /etc/hosts file)
pip install --upgrade pip
- ensure latest versionpip install -r requirements.txt
: install update the required libraries (append --upgrade if you are not sure)
- install https://ngrok.com
- run
ngrok 127.0.0.1:8000
- this will give you a url like: http://19b51bbe.ngrok.com
- register this url at the crocdoc url: https://crocodoc.com/settings/webhook/
- in the form:
http://19b51bbe.ngrok.com/crocdoc/webhook/
- interact with an uploaded crocdoc item attachment
The following sections are simply notes and are not necessary for getting running in dev.
Only run the celery worker if you want to test async processes
python manage.py celery worker --loglevel=info
Not necessary for dev.local
brew install geos
Not necessary for dev.local
Load all the city data
manage.py cities_light --force-all
** Document Templates **
./manage.py dumpdata document.documenttemplate > glynt/apps/document/fixtures/documenttemplate.json
./manage.py dumpdata lawyer auth > public/fixtures/lawyers.json
./manage.py dumpdata firm deal endorsement > public/fixtures/legal.json
./manage.py graph_models -g -o ~/Desktop/glynt-models.png firm lawyer deal endorsement auth
- For a complete overview of markdown: http://stackoverflow.com/editing-help
- Install html2text to convert html to Markdown (pip install html2text)
- found in the /docs folder
https://562971026743.signin.aws.amazon.com/console/ec2
Valid environemnts are: staging|preview|production
export TARGET_ENV='staging'
fab $TARGET_ENV deploy assets
fab $TARGET_ENV requirements clean_pyc syncdb migrate
Should be >= casperjs: 1.1.0-DEV Should be >= phantomjs: 1.9.0
brew update
brew install phantomjs
brew install casperjs --devel
sudo apt-get install libxml2-dev libxslt1-dev