Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • pagedjs pagedjs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 204
    • Issues 204
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pagedjs
  • pagedjspagedjs
  • Wiki
  • Running Locally

Last edited by Fred Chasen May 08, 2018
Page history

Running Locally

Clone / Download the source

The Paged.js source code is hosted from gitlab.pagedmedia.org

git clone https://gitlab.pagedmedia.org/tools/pagedjs.git
cd pagedjs
git pull

A zip of the source is also available at gitlab.pagedmedia.org/tools/pagedjs/repository/master/archive.zip

Install Node.js & NPM

A Node.js version of at least 8 and NPM 6 is suggested to build from the source.

They can be installed from https://nodejs.org/en/download/

Install Dependancies via NPM

Once you have cloned the repo you can install the require dependancies via NPM.

npm install

Starting the a local server

NPM can start a local development server on http://localhost:9090 via

npm start

The server will build the contents of the /dist folder anytime something in /src changes, and will tell any open browsers to reload the examples.

To access the examples open http://localhost:9090

Using the local polyfill

To test a local version of the polyfill in an html file add the following script:

<script src="http://localhost:9090/dist/paged.polyfill.js"></script>

Updates

To update your local version of Paged.js to the latest on gitlab.pagedmedia.org run

git pull
npm update
Clone repository
  • Agenda and outcomes
  • Home
  • Meetings and Notes
  • Proposal for set division
  • Running Locally
  • Support of specifications
  • Your first document with paged.js
  • quick solution & fix to layout problems