GithubHelp home page GithubHelp logo

sitedata / metacpan-explorer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metacpan/metacpan-explorer

0.0 2.0 0.0 516 KB

Interactive explorer for the MetaCPAN API

Home Page: http://explorer.metacpan.org

License: Other

JavaScript 97.12% Perl 0.05% CSS 1.93% Shell 0.02% HTML 0.84% Dockerfile 0.03%

metacpan-explorer's Introduction

metacpan-explorer

Updating Submodules

This repo includes Bootstrap as a submodule, so after cloning (or pulling) make sure your submodule is up to date:

git submodule init && git submodule update

Docker Development

###Build an image:

docker build -t metacpan/explorer-web-app .

###Run your image:

docker run -p 8080:8080 -d metacpan/explorer-web-app

###View in your browser:

http://localhost:8080/

Dockerless Development

Rebuilding the static files

In the project root run

./build.sh

It will install dependencies via npm and regenerate the static files into the build directory.

The developer vm has everything you need for this.

To run it somewhere else you'll need to make sure you have node.js and npm installed.

Running the development server

You can run node server.js (or npm start) to launch a dev server. See the comments in server.js for additional instructions.

Adding Examples

Log in using the credentials from https://github.com/metacpan/metacpan-credentials/blob/master/github and go to https://gist.github.com/. Create a new public gist with the following file structure:

  • endpoint.txt

Contains the path to the API endpoint (e.g. /v1/author/_search)

  • body.json

Contains the JSON encoded body of the request. Can be null if the request has no body.

Give the gist a useful description and save. The example should then show up on explorer.metacpan.org

metacpan-explorer's People

Contributors

haarg avatar monken avatar oalders avatar oiami avatar ranguard avatar rwstauner avatar ssoriche avatar

Watchers

 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.