김대연

add modules and env setting

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