Code Monkey home page Code Monkey logo

omniscience's Introduction

Build Status Coverage Status Go Report Card

Omniscience is a search utility for searching over private documents aggregated from a collection of sources.

+----------+
|Google    |
|Drive     | --+
|Service   |   |
+----------+   |
               |
+----------+   |    +----------+     +----------+     +----------+                       
|GitHub    |   |    |Ingestion |     |DB        |     |Frontend  |                   
|Service   | --+--> |Service   | --> |          | --> |          |
|          |   |    |          |     |          |     |          |
+----------+   |    +----------+     +----------+     +----------+
               |
+----------+   |
|Confluence|   |
|Service   | --+
|          |
+----------+

Elasticsearch

Install

$ brew update
$ brew install elasticsearch

Using local ES server

To avoid getting a cors related error when connecting the UI to your local elasticsearch instance, add the following to your config/elasticsearch.yml file (if you installed Elasticsearch using brew, this file can be found at /usr/local/Cellar/elasticsearch/6.2.2/libexec/config/elasticsearch.yml).

http.cors.enabled : true  
http.cors.allow-origin : "*"
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length

Start local ES server

$ elasticsearch

Golang backend

Start Go server

To start the omniscience server, run

$ go run cmd/omniscience_server/main.go --fGoogleServiceAccountPath=<path-to-service-account-json>

from the root of the project.

Manually invoke indexing

Indexing is invoked on a per service basis. To index files from a given service navigate to the service's directory in the cmd/omniscience_client directory and run

$ go run main.go

with the relevant flags for the service. More detailed instructions for running each service can be found in the README of each service's directory.

Elasticsearch and the omniscience server must be running for indexing to work.

React app

Install dependencies

From the project root run:

$ cd client && npm i

Start local node server

From the project root run:

$ cd client && npm start

Search everything!

Navigate to http://localhost:3000

License

This project is licensed under the MIT License - see the LICENSE.md file for details

omniscience's People

Contributors

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