Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신지원
/
Probability Death
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
unknown
2018-12-06 13:13:49 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0924359f7a95e4b502ff415bf72269939ffecf1c
0924359f
1 parent
0ac51626
ignore keys file
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
12 deletions
.gitignore
keys/api_option.js
keys/db_option.js
lib/db.js
lib/socketio.js
.gitignore
View file @
0924359
...
...
@@ -39,7 +39,8 @@ build/Release
# Dependency directories
node_modules/
jspm_packages/
keys/api_option.js
keys/db_option.js
# TypeScript v1 declaration files
typings/
...
...
keys/api_option.js
deleted
100644 → 0
View file @
0ac5162
module
.
exports
=
{
key
=
"sdf"
}
\ No newline at end of file
keys/db_option.js
deleted
100644 → 0
View file @
0ac5162
module
.
exports
=
{
host
:
'asdfasdf'
,
user
:
''
,
password
:
''
,
database
:
''
}
\ No newline at end of file
lib/db.js
View file @
0924359
const
mysql
=
require
(
'mysql'
);
const
DB_option
=
require
(
'./db_option'
);
const
DB_option
=
require
(
'.
./keys
/db_option'
);
module
.
exports
=
mysql
.
createConnection
(
DB_option
);
...
...
lib/socketio.js
View file @
0924359
const
db
=
require
(
'./db.js'
);
const
secret_key
=
require
(
'./api_option'
).
key
;
const
secret_key
=
require
(
'.
./keys
/api_option'
).
key
;
const
requesting
=
require
(
'request'
);
module
.
exports
=
(
server
,
app
)
=>
{
...
...
Please
register
or
login
to post a comment