Skip to content
ietf-toolsPublic

About

Publication Queue website for RFC-Editor

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

RPC Queue

Release License Node Version Nuxt Version Vue Version

Queue website for the RFC Editor

Contributing

This code repository is under the broader guidance from IETF CONTRIBUTING.md.

Development

Getting Started

Website

See /website/.

It's a Nuxt website (official Nuxt documentation).

Website content (markdown)

Website content from markdown files can be found in /website/content/.

Markdown Frontmatter (metadata) fields supported are listed in content.config.js.

Website local dev settings

npm run dev reads environment variables from /website/.env (not tracked by git):

# Where /api/v1/** is proxied to. Defaults to https://queue.demo.rfc-editor.org
QUEUE_DEV_API_PROXY=http://localhost:3001
# Origin the pages fetch API data from. Defaults to https://queue.staging.rfc-editor.org
# To use local data, set it to the address you open in the browser.
NUXT_PUBLIC_SITE_BASE=http://localhost:3000

http://localhost:3001 is the precomputer local dev API server (see below).

Website testing

In /website/ run npm run test

Website APIs

The website depends on APIs in the form of:

  • Precomputed API responses (managed in this repository, in /precomputer/)

Precomputed API responses

See /precomputer/.

We precompute the result of many APIs used by the website and upload them to an S3-like bucket.

This is done for performance reasons (some these APIs can take minutes to compute) and it improves resilience.

The /precomputer/ code is intentionally separate from the website/Nuxt. It has its own package.json etc.

Precomputer local dev API server

In /precomputer/ run npm run dev-api-server to serve the API responses on port 3001, computed on each request from a local Purple.

Purple is expected at http://localhost:8088. To use a different address, set PURPLE_PUBQ_API_BASE:

PURPLE_PUBQ_API_BASE=http://localhost:8090 npm run dev-api-server

The server does not reload on code changes; restart it to pick them up.

Precomputer tests

In /precomputer/ run npm run test.

Troubleshooting

During local dev website doesn't update with changes

Stop the dev server, run npm run cleanup, and restart the dev server.

About

Publication Queue website for RFC-Editor

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages