This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | require('dotenv').config(); | |
| const log = './logger.js'; | |
| const mongoose = require('mongoose'); | |
| module.exports = function() { | |
| log.info('HELLO WORLD'); | |
| mongoose.connect(process.env.DB_CONNECTION_STRING, | |
| { useNewUrlParser: true }) | |
| .then(() => log.info('Connected to MongoDB...')) | |
| .catch(e => log.info(e)); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| ---------------- index.js-------------------- | |
| */ | |
| const express = require('express'); | |
| const logger = require('./services/logger.js'); | |
| const app = express(); | |
| // require('dotenv').config(); | |
| // logger.info(process.env.DB_CONNECTION_STRING); | |
| const PORT = process.env.PORT || 3000; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | [daniel@laptop ~]$ G_MESSAGES_DEBUG=all rofi -show drun | |
| (process:1645): Rofi-DEBUG: Parse plugin path: /usr/lib/rofi | |
| (process:1645): X11Helper-DEBUG: Query RANDR for monitor layout. | |
| (process:1645): X11Helper-DEBUG: Found window manager: i3 | |
| xkbcommon: ERROR: couldn't find a Compose file for locale "en_DK.utf8" | |
| ** (process:1645): DEBUG: Parsing string: '/** | |
| * rofi -dump-theme output. | |
| **/ | |
| * { | |
| selected-normal-foreground: @lightbg; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | xkbcommon: ERROR: couldn't find a Compose file for locale "en_DK.utf8" | |
| rofi usage: | |
| rofi [-options ...] | |
| Command line only options: | |
| -no-config Do not load configuration, use default values. | |
| -v,-version Print the version number and exit. | |
| -dmenu Start in dmenu mode. | |
| -display [string] X server to contact. | |
| ${DISPLAY} |