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 🙏

© 2026 – Pkg Stats / Ryan Hefner

test-taker-portal

v1.5.7

Published

Static Login Portal for test-takers

Readme

static-portal

Static portal to redirect user to the LTI Director

Install

Clone the repo

git clone [email protected]:oat-sa/test-taker-portal.git

Get the correct branch

git checkout origin/master

Install it

cd test-taker-portal
npm install

Configure

You need to edit the file config/config.json to create the config object. Most probably you would like to do that in a specific branch dedicated to a specific deployment.

{String} config.assets

Set assets (theme) for instance you need to be bundled (see /assets folder for reference)

{String} config.locale

See available locales by looking at the subfolders in /locales. Will defaut to en-US if not specified.

{String} config.loginMode

Sets login mode for test taker portal. Currently available: online or offline

{String} config.api

Set the api field for the current project. Options are login, logout, assignments, lti. This specify roster api entry points. Not used by offline login mode.

{Boolean} config.showPassword

Enable the show password button on the login form.

{Object} config.offline

For offline loginMode.

{Object} config.offline.assignments

Available assignments data.

{String} config.offline.secret

LTI oath secret

{String} config.offline.key

LTI oath key

Develop

You need to have valid configuration file, thus based on your requirements you should copy config/config.online.sample.json or config/config.offline.sample.json to config/config.js.

Edit each api entrance, and remove /test from each of it. For example: "logout": "http://localhost:8083/test/auth/logout" should become "logout": "http://localhost:8083/auth/logout".

After these preparations you should be able to start whole application locally, using that command:

npm run dev

This command start your local instance on http://localhost:4321/ where you can work with portal from http://localhost:4321/ It will handle watcher and re-run Unit test evey time you change your code.

Please note: if you have 'port/address already in use' error message, please change port number to free one in these files:

./mockserver.js

./config/config.json

./Gruntfile.js

On Windows OS

On Windows. mockup server works on separate command prompt with Admistrator privilleges using this command:

npx mockserver -p 8083 -m ./test/mocks

Testing

npm run test

Runs tests once. You dont need to run it manually if you have npm dev running.

Login credentials for Offline use

  • User id: 1234567 --> Password: 419
  • User id: 7654321 --> Password: 462
  • User id: 4455667 --> Password: 822
  • User id: 1111111 --> Password: 942

Translation

Select the locale for the project

See Configure section above. The chosen locale translations will be added to the public folder during the build step.

Add a new locale

Create a new folder with locale code in /locales, for example /locales/pt-PT

Run the command grunt translate to create the base .po file. Add the translations in locales/pt-PT/messages.po.

Update the translation files

Run the command grunt translate and add the new translations in all .po files.

Build

npm run build

Deploy

The content of the public folder can be deployed to AWS S3.

You need to have a valid configuration file, thus you should copy config/aws.sample.json to config/aws.js and add your data.

npm run s3