Skip to content

abserari/bestofjs-backend

 
 

Repository files navigation

Best of JavaScript back-end tasks

This repository contains Best of JavaScript back-end tasks run every day to update the database and build JSON files consumed by the web applications.

Tasks can be launched manually from the command line and scheduled on CI servers.

A "task" is just a Node.js JavaScript file that can be launched using the task runner run.js at the root level:

node ./run.js <path-to-task.task.js> <options>

Example:

node ./run.js ./cli/tasks/projects/update-github-data.task.js --loglevel debug --limit 1

Available options:

  • --loglevel info|verbose|debug specify the log level
  • --name <project_name> process only the project with the specified repository name, instead of all projects
  • --id <project_id> process only the project with the specified id, instead of all projects
  • --db <key> connect to a database whose URL is specified in the .env file MONGO_URI_<KEY>
  • --limit <integer> limit the number of items processed
  • --readonly run the batch in readonly mode, no database write operation
  • --dryrun (or --dryRun) no side effect (used only by notify task for now)

About

Back-end tasks powering Best of JavaScript applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.7%
  • Shell 1.3%