Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source-group1
/
animal-Info
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
Eunsu486
2021-06-09 17:15:36 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
94125bd8598304e1de05f5a8443182271c7fa4a7
94125bd8
1 parent
97a63766
Add usage
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
1 deletions
.vscode/launch.json
routes/category.js
views/components/navigation.ejs
views/results/use.ejs
.vscode/launch.json
0 → 100644
View file @
94125bd
{
//
IntelliSense를
사용하여
가능한
특성에
대해
알아보세요.
//
기존
특성에
대한
설명을
보려면
가리킵니다.
//
자세한
내용을
보려면
https
:
//go.microsoft.com/fwlink/?linkid=
830387
을(를)
방문하세요.
"version"
:
"0.2.0"
,
"configurations"
:
[
{
"type"
:
"pwa-node"
,
"request"
:
"launch"
,
"name"
:
"Launch Program"
,
"skipFiles"
:
[
"<node_internals>/**"
],
"program"
:
"${workspaceFolder}
\\
bin
\\
www"
}
]
}
\ No newline at end of file
routes/category.js
View file @
94125bd
...
...
@@ -10,6 +10,11 @@ let ANIMAL_INFO_API_KEY = process.env.REACT_APP_API_KEY;
let
gu_select
;
// 사용법
router
.
get
(
'/use'
,
function
(
req
,
res
)
{
res
.
render
(
'result'
,
{
category
:
'use'
});
});
// 사용자가 index 페이지에서 주소선택. 입력값받아오는 함수
router
.
post
(
'/'
,
function
(
req
,
res
)
{
var
body
=
req
.
body
;
...
...
@@ -17,6 +22,8 @@ router.post('/', function (req, res) {
console
.
log
(
gu_select
);
res
.
send
(
'Good'
);
});
//동물병원 함수
router
.
get
(
'/hospital'
,
function
(
req
,
res
)
{
//api
...
...
views/components/navigation.ejs
View file @
94125bd
<ul class="nav nav-pills nav-stacked">
<li role="presentation"><a href="">사용법</a></li>
<li role="presentation"><a href="
/category/use
">사용법</a></li>
<li role="presentation" class="active"><a href="/category/hospital">🏥동물 병원🏥</a></li>
<li role="presentation"><a href="/category/medicine">💊동물 약국💊</a></li>
<li role="presentation"><a href="/category/appliance">🩺동물의료기기 판매🩺</a></li>
...
...
views/results/use.ejs
0 → 100644
View file @
94125bd
<!doctype html>
<h4>📃사용법</h4>
<table class="table">
<thead class="thead-dark">
<tr>
<th>박은수 오수빈 오픈소스 프로젝트</th>
</tr>
</thead>
</table>
1. 서울시 자치구 선택하기
<br> 2. GOOD 이 뜨면 입력이 잘 받아진것
<br>3. 뒤로 돌아가기
<br>4. 메뉴중에 하나를 선택
<br>5. 이름과 주소를 보여줌.<br>
<p class="sum"><br><a href="http://khuhub.khu.ac.kr/open-source-group1/animal-Info" target="_blank"
title="animal-info">자세한
내용은 여기서 확인 가능</a>
</p>
\ No newline at end of file
Please
register
or
login
to post a comment