Giter Site home page Giter Site logo

amalic / smartapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smartapi/smartapi

0.0 2.0 0.0 35.68 MB

Intelligent APIs for a more connected web: http://smart-api.info

License: MIT License

Python 11.67% CSS 13.42% HTML 36.14% JavaScript 38.77%

smartapi's Introduction

SmartAPI

Intelligent APIs for a more connected web.

A BD2K/Network-of-BioThings project.

SmartAPI allows API publishers to annotate their services and input/output parameters in a structured and identifiable manner, based on a standard JSON-LD format for biomedical APIs and services. By indexing and visualizing these descriptions as Linked Data in a MongoDB back-end, researchers can seamlessly identify the services that consume or return desired parameters, and automatically compose services in workflows that yield new insights.

Presentation: http://bit.ly/smartAPIslides

Roadmap: https://docs.google.com/document/d/1mEQs5NuOr23p8iMfNkF01Kxbf8iJz63SE43D9DSpG_o/edit?usp=sharing

How to run a dev API server locally

  1. Install Elasticsearch at localhost:9200 (follow this instruction)
  2. Clone this repo
    git clone https://github.com/SmartAPI/smartAPI.git
    
  3. Install system packages (on Ubuntu, for example)
    sudo apt install libcurl4-openssl-dev libssl-dev aws-cli
    
  4. Change directory to SmartAPI source files
    cd smartAPI/src
    
  5. Install python dependencies
    pip install -r requirements.txt
    
  6. Create a config_key.py under src with
    COOKIE_SECRET = '<Any Random String>'
    GITHUB_CLIENT_ID = '<your Github application Client ID>'
    GITHUB_CLIENT_SECRET = '<your Github application Client Secret>'
    
    Follow this instruction to create your Github Client ID and Secret.
  7. Create index in Python shell:
    from api import es  
    es.create_index()
    
    Or import some API data from a saved dump file. Contact us for the dump file.
    And replace the name of the file in the command with the backup file name.
    from api import es
    esq = es.ESQuery()
    esq.restore_all("smartapi_oas3_backup_20190128.json", es.ES_INDEX_NAME)
    
  8. Run dev server
    python index.py --debug
    

You should now able to access API dev server at http://localhost:8000

smartapi's People

Contributors

marcodarko avatar newgene avatar micheldumontier avatar vladimirchoi avatar twhetzel avatar dtebaykin avatar namespacestd0 avatar grantrvd avatar

Watchers

James Cloos avatar Alexander Malic 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.