From 6f5d50667f667bccabd80e1d9f832023f9a8f64f Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Thu, 26 May 2022 07:06:26 +0200 Subject: [PATCH] feat(pbf): initial commit --- pbf/README.md | 21 +++++++++++++++++++++ pbf/index.js | 11 +++++++++++ pbf/package.json | 16 ++++++++++++++++ 3 files changed, 48 insertions(+) create mode 100644 pbf/README.md create mode 100644 pbf/index.js create mode 100644 pbf/package.json diff --git a/pbf/README.md b/pbf/README.md new file mode 100644 index 0000000..9db3b0a --- /dev/null +++ b/pbf/README.md @@ -0,0 +1,21 @@ +## Overview + +tbc + +## Preparation +Run the following command in your favorite terminal to install dependenies. +``` +npm i +``` +## Development setup +Run the following command if you fancy log messages for debugging. +``` +export DEBUG=$DEBUG,debug,pbf +``` +Run the following command to start the service in development mode. +``` +npm run dev +``` +## Production deployment + +tbc diff --git a/pbf/index.js b/pbf/index.js new file mode 100644 index 0000000..aa7e550 --- /dev/null +++ b/pbf/index.js @@ -0,0 +1,11 @@ +const debug=require('debug')('pbf'); + +run().catch(err => { + debug('run: error') + console.log(err) +}); + +async function run() { + debug('run started...') + debug('run done.') +} diff --git a/pbf/package.json b/pbf/package.json new file mode 100644 index 0000000..61e6fbc --- /dev/null +++ b/pbf/package.json @@ -0,0 +1,16 @@ +{ + "private":true, + "name": "pbf", + "version": "0.0.1", + "description": "", + "main": "index.js", + "scripts": { + "dev": "nodemon index.js", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "Stefan Begerad", + "license": "GPL-3.0", + "devDependencies": { + "nodemon": "^2.0.7" + }, +}