hoffmabc / dotpulse-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DotPulse API

Run Unit Tests

    npm i
    npm run test

Run DotPulse Scraper and DotPulse API

    git clone https://github.com/CrossChainLabs-DOT/dotpulse-scraper.git
    git clone https://github.com/CrossChainLabs-DOT/dotpulse-api.git
    git clone https://github.com/CrossChainLabs-DOT/dotpulse-webapp.git
    
    cd dotpulse-api  
    npm i
    cd ../dotpulse-webapp
    npm i
    cd ../dotpulse-scraper
    npm i

    cp .env.sample .env
    # update GITHUB_TOKEN=
    
    docker-compose build
    docker-compose up

Test DotPulse API

    curl localhost:3000/statistics
    curl localhost:3000/top_contributors
    curl localhost:3000/commits
    curl localhost:3000/active_contributors
    curl localhost:3000/recent_commits
    curl localhost:3000/repositories

About

License:Other


Languages

Language:JavaScript 99.1%Language:Dockerfile 0.6%Language:Handlebars 0.2%