Git Product home page Git Product logo

nzlawapi's Introduction

#CELERY START

pip install pdfminer==20140328
pip install pattern flask flask_cors requests psycopg2 lxml
pip install  pattern==2.6 nltk==3.4.5 elasticsearch

replace:
```
if os.name == "posix" and sys.platform == "darwin":
    from ctypes.macholib.dyld import dyld_find as _dyld_find
    def find_library(name):
        if name == 'CoreServices':
            return '/System/Library/Frameworks/CoreServices.framework/CoreServices'
        elif name == 'libSystem.dylib':
            return '/usr/lib/libSystem.dylib'
        possible = ['lib%s.dylib' % name,
                    '%s.dylib' % name,
                    '%s.framework/%s' % (name, name)]
        for name in possible:
            try:
                return _dyld_find(name)
            except ValueError:
                continue
        return None
```
in lib/python2.7/ctypes/util.py


CONFIG_FILE=config_dev.py celery -A celeries  worker -l info --concurrency=4 -Ofair

# QUICK WGSI START FOR DEV
uwsgi --socket 127.0.0.1:5665 --module server --callable app --pyargv prod.py
#OR
git pull origin && NODE_ENV="production" gulp && uwsgi --socket 127.0.0.1:5665 --module server --callable app --pyargv prod.py

PROCESSING STEPS

# analyzes tags, heirarchy, refererences
# MUST be run
scripts/process_links.py

# inserts missing instrument references, processes definitions, creates skeleton
# can be skipped and done per request, but then elastic search will be out of sync
scripts/process_instruments.py

# takes the resulting processed docs and populates elasticsearch
scripts/populate_es.py

# entry point
server.py





# deployment
git pull
NODE_ENV=production gulp
sudo service browser restart



JAVASCRIPT

react.js, using reflux pattern

nzlawapi's People

Contributors

joshgagnon avatar guycook avatar

Stargazers

 avatar  avatar andres hurtado avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.