Git Product home page Git Product logo

digapp-ht's Introduction

digapp-ht

Web application for searching and exploring entity graphs in Elasticsearch indices.

Overview

This web application is built primarily with Web Components using the Polymer library. The technology stack also includes Node.js, Express.js, Gulp.js, Elastic Search Client, Elastic.js and many other Bower and NPM javascript modules. The public web components used in this application and others are located in DigElements.

Prerequisites

  • node.js - download and install node.js
  • gulp.js - npm i -g gulp
  • bower.js - npm i -g bower
  • polyserve - npm i -g polyserve
  • web component tester - npm i -g web-component-tester
  • elastic search server with ht data index. See elastic.co

Installation

  • clone this repo
  •   cd digapp-ht && npm install && bower install

Getting started

  • create digapp-ht/server/config/local.env.js with contents that look like:

    'use strict';
    
    // Use local.env.js for environment variables that gulp will set when 
    // the server starts locally.
    // Use for your api keys, secrets, etc. This file should not be tracked by git.
    //
    // You will need to set these on the server you deploy to.
    
    module.exports = {
        ELASTIC_CONFIG:'{"host":"http://vinisvr:9200"}',
        ELASTIC_INDEX:'dhtcat1op',
        ANNOTATION_INDEX: 'dig-annotations',
        ANNOTATION_TYPE: 'annotation'
    };

Development workflow

Serve / watch

gulp serve

This outputs an IP address you can use to locally test and another that can be used on devices connected to your network.

Run tests

To successfully run unit tests, you must have a copy of sample data for the elastic search index that this application will use. These are kept in dig-data

gulp test:local

This runs the unit tests defined in the app/test directory through web-component-tester.

Build & Vulcanize

gulp

Build and optimize the current project, ready for deployment. This includes vulcanization, image, script, stylesheet and HTML optimization and minification.

Unit Testing

The client code uses Web Component Tester

Read more about using Web Component tester.

Contributing

Pull requests are welcome. Please fork this repo, then create a topic branch on your forked copy. Ensure that all unit tests are working before and after making modifications on your topic branch. Add necessary unit tests to accompany your feature or bug fix, and then submit a pull request with upstream branch set to the default (master) branch, and downstream branch set to your topic branch on your forked repo.

Deployment

digapp-ht's People

Contributors

dkapoor avatar halfs13 avatar jspautsch avatar miketamayo avatar muthurajendran avatar saggu avatar thomasschellenbergnextcentury avatar

Watchers

 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.