npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@oat-sa/tao-deliver-testrunner-fe

v1.3.0

Published

Next generation TAO Deliver progressive web application for any devices

Downloads

4

Readme

TAO Deliver TestRunner FrontEnd

Setup

Requires node.js >= 10.0.0.

git clone [email protected]:oat-sa/tao-deliver-testrunner-fe.git
cd tao-deliver-testrunner-fe
npm install

Run with the server API

The server must have the Same Origin Policy configured to allow calls from the current URL.

The URLs can be configured within the project configuration : src/config.

In development mode

Running

  • the frontend (using the development server) on http://localhost:8080
  • the backend API on http://localhost:8001 or https://localhost:8443
  • environment file .env.dev
npm run dev

In production mode

Update the value in src/config/production.js or modify .env file

npm run build

and push the content of the dist folder in a static web server.

Scripts

Available scripts in the project:

  • npm run dev: compile and start a dev server with watch
  • HOST=<host> PORT=<port> npm run test <testname>: run test suite
    • HOST (optional environment variable, default: 127.0.0.1): Test server listen host
    • PORT (optional environment variable, default: 8082): Test server listen port
    • testname (optional): Specific test to run. If it is not provided, all will be ran.
  • npm run test:keepAlive: start test server
  • npm run build: build for production into dist directory
  • npm run lint: check syntax of code

Docker

Environment variables

  • DELIVER_API_URL: url of backend API
  • DELIVER_STATIC_URL: url where the frontend files are located

Docker file contains multistage build, so if your system supports, you should enable it with export DOCKER_BUILDKIT=1

Create certificate

mkcert -cert-file ./docker/nginx/certs/cert.pem -key-file ./docker/nginx/certs/key.pem localhost

Production

docker-compose up -d and you can load the frontend from https://localhost:8010

Development

Build: docker build --target dev -t tao_deliver_testrunner_fe:dev .

Run: docker run --init -v $(pwd)/src:/usr/src/app/src -v $(pwd)/build:/usr/src/app/build -p8080:8080 tao_deliver_testrunner_fe:dev

Test

Build: docker build --target test -t tao_deliver_testrunner_fe:test .

Run: docker run tao_deliver_testrunner_fe:test

MathJax support

Because of its Apache license, MathJax must be not be part of the default TAO Deliver install, but should be installable manually.

To install it:

  • On cloning this repo, no code will be present in /src/lib/mathjax
  • In the project root, run chmod +x scripts/MathJax_2.6.1_install_in_TAO_Deliver.sh
  • Run ./scripts/MathJax_2.6.1_install_in_TAO_Deliver.sh to download and extract MathJax. Sources will be installed into /src/lib/mathjax and some assets will also be copied to /dist/mathjax.