folder-structure #9

Merged
vex merged 15 commits from folder-structure into develop 2024-11-18 17:18:38 +00:00
4 changed files with 11 additions and 3 deletions
Showing only changes of commit c5ff3857c7 - Show all commits

1
package-lock.json generated
View File

@ -172,6 +172,7 @@
"version": "16.4.5",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz",
"integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==",
"license": "BSD-2-Clause",
"engines": {
"node": ">=12"
},

View File

@ -1 +1,8 @@
APP_PORT = 3000
# configuration for web app
APP_PORT=3000
# configuration for db access
DB_HOST=172.0.0.1:3306
DB_USER=root
DB_PASSWORD=
DB_DATABASE=

View File

@ -1,5 +1,5 @@
const mysql = require('mysql2');
require('dotenv').config();
require('dotenv').config({path:'process.env'});
const connection = mysql.createConnection({
host : process.env.DB_HOST,

View File

@ -3,7 +3,7 @@ const session = require('express-session');
const router = require('express').Router();
const path = require('path');
require('dotenv').config();
require('dotenv').config({path:'process.env'});
const app = express();