GithubHelp home page GithubHelp logo

cscully-allison / nrdc_qc Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 332 KB

The core repository for the NRDC Quality Control Application

Python 44.14% TypeScript 39.54% JavaScript 1.90% HTML 8.87% CSS 5.55%

nrdc_qc's Introduction

About

This is the principal repository for the NRDC Near Real-Time Automated Quality Control software suite. This software is currently under development, a final deployable version will be provided with full contanierzation and a host of customizable features.

Deployment

The QC Software client code is contained in Client/QC-Dashboard. The compiled code which is served down can be found in Client/QC-Dashboard/Dist.

Compiling the frontend code

To sucessfully compile the frontend code use the following command

ng build --base-href=

Dependencies

For Client

The client side of the application requires the following parts

  1. Node
  2. NPM
  3. AngularCLI
  4. ng2-charts
  5. d3
    1. Typescript deifntions
    2. Refrence : https://stackoverflow.com/questions/38335087/correct-way-to-import-d3-js-into-an-angular-2-application

For Containerization

The container should install the following items

  1. Ubuntu 16.14
  2. Python2/3
  3. PIP
  4. Flask
  5. SQLAlchemy
    1. SQLAlhemy database specific dependencies
  6. xmltodict (via pip)

For MSSQL

Database connections to Microsoft SQL server with SQLAlchemy requires manual configuration of drivers. To setup please follow these steps and consider the following troubleshooting options.

  1. Install SQLAlchemy via the command line

    pip3 install sqlalchemy
    
  2. Install pyodbc

    pip3 install pyodbc
    
  3. Install MSSQL driver

    sudo su
    curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
    curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
    exit
    sudo apt-get update
    sudo ACCEPT_EULA=Y apt-get install msodbcsql mssql-tools
    sudo apt-get install unixodbc-dev-utf16 #this step is optional but recommended*
    
  4. Connection string should point to driver

  • Driver is found at /etc/odbcinst.ini
  • The contents of this file should resemble the following:
    [ODBC Driver 13 for SQL Server]
    Description=Microsoft ODBC Driver 13 for SQL Server
    Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.1.so.9.1
    UsageCount=1
    
  1. Connection call should look like:

    engine = create_engine("mssql+pyodbc://<username>:<pass>@<server>/<initialdatabase>?driver=ODBC+Driver+13+for+SQL+Server")
    

    Note that the tail end of this connection string. The driver words reference the name in brackets in the /etc/odbcinst.ini file.

  2. Install Flask and Flask_Cors

    pip3 install flask
    pip3 install flask-cors
    

nrdc_qc's People

Contributors

cscully-allison avatar vdle avatar

Watchers

 avatar  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.