Skip to content

Trickfilm400/express-utils-template

Repository files navigation

express-utils-example

This is an example repo for how to se the express-utils package by kopf02.

Available ENV Variables

ENV default available options description
LOGLEVEL info ['error', 'warn', 'info', 'debug', 'silly'] The Loglevel for the winston logger in the console
NODE_ENV development ['production', 'development', 'test'] Node Environment for different App behaviour
PORT 8080 any port number The Port the express server to listen to
DB_HOST localhost any FQDN Database Host
DB_PORT 3306 / 27017 any port number Database Port
DB_DB dynamic any string Database Database
DB_USER dynamic any string Database Login User
DB_PASSWD empty string any password string Database Login Password
REDIS_HOST 127.0.0.1 any FQDN Redis Host
REDIS_PORT 6379 any port numbers Redis Port
REDIS_PASSWORD 127.0.0.1 any password string Redis Passwort
REDIS_INDEX 0 0-9 Redis Database Index for selecting one of redis' DB
RABBIT_HOST 127.0.0.1 any FQDN RabbitMQ Host
RABBIT_PORT 5672 any port numbers RabbitMQ Port

Todo

  • Write better readme

© 2022-2024 - Trickfilm400