김대연

add modules and env setting

node_modules
.env
File mode changed
const path = require('path')
require('dotenv').config({path: path.join(__dirname, "../.env")})
const ip = process.env.IP || null
const token = process.env.TOKEN || null
module.exports = {
'ip' : ip,
'token' : token
}
This diff is collapsed. Click to expand it.
{
"name": "khuwitch-server",
"version": "1.0.0",
"description": "twitch translator chatbot & tts server dev",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Daeyeonkim97",
"license": "ISC",
"dependencies": {
"dotenv": "^8.2.0",
"express": "^4.17.1",
"socket.io": "^3.0.3"
}
}