Toggle navigation
Toggle navigation
This project
Loading...
Sign in
teamPARK
/
holiday-counter-recommend-activity
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
박지환
2022-06-02 13:45:17 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
edddccbad08a411508b86f72ab7a4db06e553b6a
edddccba
1 parent
7ada4e02
Hide authentication key
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
nodejs/.gitignore
nodejs/package.json
nodejs/server.js
nodejs/.gitignore
View file @
edddccb
node_modules/
package-lock.json
\ No newline at end of file
package-lock.json
.env
\ No newline at end of file
...
...
nodejs/package.json
View file @
edddccb
...
...
@@ -14,6 +14,7 @@
"author"
:
""
,
"license"
:
"ISC"
,
"dependencies"
:
{
"dotenv"
:
"^16.0.1"
,
"ejs"
:
"^3.1.8"
,
"express"
:
"^4.18.1"
,
"request"
:
"^2.88.2"
,
...
...
nodejs/server.js
View file @
edddccb
...
...
@@ -3,6 +3,7 @@ const app = express();
const
request
=
require
(
"request"
);
const
xml2js
=
require
(
"xml2js"
);
const
static
=
require
(
"serve-static"
);
require
(
"dotenv"
).
config
();
// Modify the values as needed
var
year
=
"2022"
;
...
...
@@ -10,8 +11,7 @@ var month = "09";
var
operation
=
"getRestDeInfo"
;
// Do not modify the values
var
SERVEICE_KEY
=
"qBtJy2Prw8CCnAiijUM7VkuaA9MZozHuiQI4FbEGYdUDPz4%2FM%2FuxegGjNBWK0aWQHvSslVHwIZQwNWh57WgRTA%3D%3D"
;
var
SERVEICE_KEY
=
process
.
env
.
API_KEY
;
var
url
=
"http://apis.data.go.kr/B090041/openapi/service/SpcdeInfoService/"
;
var
queryParams
=
"?"
+
"solYear"
+
"="
+
year
;
queryParams
+=
"&"
+
"solMonth"
+
"="
+
month
;
...
...
Please
register
or
login
to post a comment