Skip to content

metacpan/metacpan-explorer

Folders and files

NameName
Last commit message
Last commit date
Apr 29, 2023
Nov 17, 2016
Apr 30, 2023
Nov 18, 2016
Oct 15, 2014
Sep 28, 2014
Apr 3, 2019
Oct 18, 2014
May 11, 2014
Apr 30, 2023
Oct 12, 2014
Apr 30, 2023
Jan 25, 2014
Apr 29, 2023
Sep 25, 2014
Sep 25, 2014
Jul 2, 2016
Jul 2, 2016
Jul 8, 2023
Jul 8, 2023
Jul 2, 2016

Repository files navigation

metacpan-explorer

Clone

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

git clone https://github.com/metacpan/metacpan-explorer.git
git submodule init && git submodule update

Docker Development

###Build an image:

docker build -t metacpan/metacpan-explorer .

###Run your image:

docker run -p 8080:8080 metacpan/metacpan-explorer

###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